Skip to content

Commit

Permalink
chore: fetch redis image and add rubygems volume
Browse files Browse the repository at this point in the history
  • Loading branch information
TamarinEA committed Jul 22, 2021
1 parent 1b358ef commit 0caf11c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ volumes:
- name: bundle
host:
path: /home/data/drone/gems
- name: rubygems
host:
path: /home/data/drone/rubygems

spec_step_common: &spec_step_common
image: abakpress/dind-testing:1.0.3
Expand All @@ -22,7 +25,10 @@ spec_step_common: &spec_step_common
path: /bundle
commands:
- prepare-build
- fetch-images --image abakpress/ruby-app:$RUBY_IMAGE_TAG

- fetch-images
--image abakpress/ruby-app:$RUBY_IMAGE_TAG
--image redis:$REDIS_IMAGE_TAG
- dip provision
- dip rspec

Expand All @@ -32,6 +38,7 @@ steps:
COMPOSE_FILE_EXT: drone
DOCKER_RUBY_VERSION: 2.2
RUBY_IMAGE_TAG: 2.2-latest
REDIS_IMAGE_TAG: 4-alpine
RAILS_ENV: test
<<: *spec_step_common

Expand All @@ -40,6 +47,7 @@ steps:
COMPOSE_FILE_EXT: drone
DOCKER_RUBY_VERSION: 2.3
RUBY_IMAGE_TAG: 2.3-latest
REDIS_IMAGE_TAG: 4-alpine
RAILS_ENV: test
<<: *spec_step_common

Expand All @@ -48,6 +56,7 @@ steps:
COMPOSE_FILE_EXT: drone
DOCKER_RUBY_VERSION: 2.4
RUBY_IMAGE_TAG: 2.4-latest
REDIS_IMAGE_TAG: 4-alpine
RAILS_ENV: test
<<: *spec_step_common

Expand All @@ -58,5 +67,8 @@ steps:
event: push
branch: master
status: success
volumes:
- name: rubygems
path: /root/.gem
commands:
- release-gem --public

0 comments on commit 0caf11c

Please sign in to comment.