@@ -27,8 +27,8 @@ RUN echo 'my expensive build step'
27
27
steps :
28
28
- command : echo wow
29
29
plugins :
30
- - seek-oss/docker-ecr-cache#v1.9 .0
31
- - docker#v3.3 .0
30
+ - seek-oss/docker-ecr-cache#v1.10 .0
31
+ - docker#v3.8 .0
32
32
` ` `
33
33
34
34
### Caching npm packages
@@ -52,11 +52,11 @@ RUN npm install
52
52
steps:
53
53
- command: npm test
54
54
plugins:
55
- - seek-oss/docker-ecr-cache#v1.9 .0:
55
+ - seek-oss/docker-ecr-cache#v1.10 .0:
56
56
cache-on:
57
57
- package.json # avoid cache hits on stale lockfiles
58
58
- package-lock.json
59
- - docker#v3.3 .0:
59
+ - docker#v3.8 .0:
60
60
volumes:
61
61
- /workdir/node_modules
62
62
` ` `
@@ -67,7 +67,7 @@ The `cache-on` property also supports Bash globbing with `globstar`:
67
67
steps:
68
68
- command: npm test
69
69
plugins:
70
- - seek-oss/docker-ecr-cache#v1.9 .0:
70
+ - seek-oss/docker-ecr-cache#v1.10 .0:
71
71
cache-on:
72
72
- '**/package.json' # monorepo with multiple manifest files
73
73
- yarn.lock
@@ -84,9 +84,9 @@ It's possible to specify the Dockerfile to use by:
84
84
steps:
85
85
- command: echo wow
86
86
plugins:
87
- - seek-oss/docker-ecr-cache#v1.9 .0:
87
+ - seek-oss/docker-ecr-cache#v1.10 .0:
88
88
dockerfile: my-dockerfile
89
- - docker#v3.3 .0
89
+ - docker#v3.8 .0
90
90
` ` `
91
91
92
92
Alternatively, Dockerfile can be embedded inline :
@@ -95,15 +95,14 @@ Alternatively, Dockerfile can be embedded inline:
95
95
steps:
96
96
- command: echo wow
97
97
plugins:
98
- - seek-oss/docker-ecr-cache#v1.9 .0:
98
+ - seek-oss/docker-ecr-cache#v1.10 .0:
99
99
dockerfile-inline: |
100
100
FROM node:16-alpine
101
101
WORKDIR /workdir
102
102
COPY package.json package-lock.json /workdir
103
103
RUN npm install
104
104
105
-
106
- - docker#v3.3.0
105
+ - docker#v3.8.0
107
106
` ` `
108
107
109
108
# ## Specifying a target step
@@ -120,9 +119,9 @@ stage to run commands against:
120
119
steps:
121
120
- command: cargo test
122
121
plugins:
123
- - seek-oss/docker-ecr-cache#v1.9 .0:
122
+ - seek-oss/docker-ecr-cache#v1.10 .0:
124
123
target: build-deps
125
- - docker#v3.3 .0
124
+ - docker#v3.8 .0
126
125
` ` `
127
126
128
127
# ## Specifying build context
@@ -135,10 +134,10 @@ The `context` property can be used to specify a different path.
135
134
steps:
136
135
- command: cargo test
137
136
plugins:
138
- - seek-oss/docker-ecr-cache#v1.9 .0:
137
+ - seek-oss/docker-ecr-cache#v1.10 .0:
139
138
dockerfile: dockerfiles/test/Dockerfile
140
139
context: '.'
141
- - docker#v3.3 .0
140
+ - docker#v3.8 .0
142
141
` ` `
143
142
144
143
# ## Specifying build args
@@ -164,11 +163,11 @@ steps:
164
163
env:
165
164
ARG_1: wow
166
165
plugins:
167
- - seek-oss/docker-ecr-cache#v1.9 .0:
166
+ - seek-oss/docker-ecr-cache#v1.10 .0:
168
167
build-args:
169
168
- ARG_1
170
169
- ARG_2=such
171
- - docker#v3.3 .0
170
+ - docker#v3.8 .0
172
171
` ` `
173
172
174
173
Additional `docker build` arguments be passed via the `additional-build-args` setting :
@@ -179,9 +178,9 @@ steps:
179
178
env:
180
179
ARG_1: wow
181
180
plugins:
182
- - seek-oss/docker-ecr-cache#v1.9 .0:
181
+ - seek-oss/docker-ecr-cache#v1.10 .0:
183
182
additional-build-args: '--ssh= default=\$ SSH_AUTH_SOCK'
184
- - docker#v3.3 .0
183
+ - docker#v3.8 .0
185
184
` ` `
186
185
187
186
# ## Specifying secrets
@@ -207,10 +206,10 @@ steps:
207
206
env:
208
207
SECRET: wow
209
208
plugins:
210
- - seek-oss/docker-ecr-cache#v1.9 .0:
209
+ - seek-oss/docker-ecr-cache#v1.10 .0:
211
210
secrets:
212
211
- SECRET
213
- - docker#v3.3 .0
212
+ - docker#v3.8 .0
214
213
` ` `
215
214
216
215
You must have a recent version of Docker with BuildKit enabled to use secrets.
@@ -225,9 +224,9 @@ By default images are kept in ECR for up to 30 days. This can be changed by spec
225
224
steps:
226
225
- command: echo wow
227
226
plugins:
228
- - seek-oss/docker-ecr-cache#v1.9 .0:
227
+ - seek-oss/docker-ecr-cache#v1.10 .0:
229
228
max-age-days: 7
230
- - docker#v3.3 .0
229
+ - docker#v3.8 .0
231
230
` ` `
232
231
233
232
# ## Changing the name of exported variable
@@ -238,7 +237,7 @@ By default image name and computed tag are exported to the Docker buildkite plug
238
237
steps:
239
238
- command: echo wow
240
239
plugins:
241
- - seek-oss/docker-ecr-cache#v1.9 .0:
240
+ - seek-oss/docker-ecr-cache#v1.10 .0:
242
241
export-env-variable: BUILDKITE_PLUGIN_MY_CUSTOM_PLUGIN_CACHE_IMAGE
243
242
- my-custom-plugin#v1.0.0:
244
243
` ` `
@@ -255,12 +254,12 @@ optionally use a custom repository name:
255
254
steps:
256
255
- command: echo wow
257
256
plugins:
258
- - seek-oss/docker-ecr-cache#v1.9 .0:
257
+ - seek-oss/docker-ecr-cache#v1.10 .0:
259
258
ecr-name: my-unique-repository-name
260
259
ecr-tags:
261
260
Key: Value
262
261
Key2: Value2
263
- - docker#v3.3 .0
262
+ - docker#v3.8 .0
264
263
` ` `
265
264
266
265
# ### Required permissions
@@ -300,7 +299,7 @@ Example:
300
299
` ` ` yaml
301
300
- command: echo wow
302
301
plugins:
303
- - seek-oss/docker-ecr-cache#v1.9 .0:
302
+ - seek-oss/docker-ecr-cache#v1.10 .0:
304
303
registry-provider: gcr
305
304
gcp-project: foo-bar-123456
306
305
` ` `
0 commit comments