Skip to content

Commit b22984a

Browse files
committed
circle: Stop repeating Docker image for ruby builds
Instead, extract it out much as we do elsewhere.
1 parent c7de93b commit b22984a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.circleci/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ x-config:
55
x-images:
66
- &docker-node
77
- image: 'circleci/node:8'
8+
- &docker-ruby
9+
- image: 'circleci/ruby:2.4'
810
x-caching: # caching instructions
911
- &save-cache-yarn
1012
key: 'v3-yarn-dependencies-{{ arch }}-{{ checksum "yarn.lock" }}'
@@ -116,7 +118,7 @@ jobs:
116118
- persist_to_workspace: *persist-workspace-node_modules
117119

118120
cache-bundler-linux:
119-
docker: [{image: 'circleci/ruby:2.4'}]
121+
docker: *docker-ruby
120122
steps:
121123
- checkout
122124
- run: *set-ruby-version

0 commit comments

Comments
 (0)