-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.drone.yml
61 lines (55 loc) · 1.15 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
kind: pipeline
type: docker
name: build
volumes:
- name: bundle
host:
path: /home/data/drone/gems
- name: keys
host:
path: /home/data/drone/key_cache
spec_step_common: &spec_step_common
pull: if-not-exists
volumes:
- name: bundle
path: /bundle
- name: keys
path: /ssh_keys
commands:
- eval $(ssh-agent -s)
- ssh-add /ssh_keys/id_rsa
- bundle install -j 5
- bundle exec appraisal install
- bundle exec appraisal rspec
steps:
- name: postgres
image: abakpress/postgres-db:11
pull: if-not-exists
environment:
POSTGRES_DB: docker
detach: true
- name: redis
image: redis:4-alpine
pull: if-not-exists
detach: true
- name: build on ruby2.4
image: abakpress/ruby-app:2.4-2.0.0
environment:
TEST_DB_HOST: postgres
TEST_DB_NAME: docker
TEST_DB_USERNAME: postgres
BUNDLE_CONFIG: /app/.bundle/config
BUNDLE_PATH: /bundle/2.4
TEST_REDIS_HOST: redis
REDIS_IMAGE_TAG: 4-alpine
<<: *spec_step_common
- name: release
image: abakpress/gem-publication:latest
pull: if-not-exists
when:
event: push
branch: master
status: success
commands:
- release-gem