Skip to content

Commit f637daf

Browse files
authored
Bump README references
1 parent 55c2f53 commit f637daf

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

README.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ RUN echo 'my expensive build step'
2727
steps:
2828
- command: echo wow
2929
plugins:
30-
- seek-oss/docker-ecr-cache#v1.11.0
31-
- docker#v3.8.0
30+
- seek-oss/docker-ecr-cache#v2.0.0
31+
- docker#v3.11.0
3232
```
3333
3434
### Caching npm packages
@@ -52,11 +52,11 @@ RUN npm install
5252
steps:
5353
- command: npm test
5454
plugins:
55-
- seek-oss/docker-ecr-cache#v1.11.0:
55+
- seek-oss/docker-ecr-cache#v2.0.0:
5656
cache-on:
5757
- package.json # avoid cache hits on stale lockfiles
5858
- package-lock.json
59-
- docker#v3.8.0:
59+
- docker#v3.11.0:
6060
volumes:
6161
- /workdir/node_modules
6262
```
@@ -67,7 +67,7 @@ The `cache-on` property also supports Bash globbing with `globstar`:
6767
steps:
6868
- command: npm test
6969
plugins:
70-
- seek-oss/docker-ecr-cache#v1.11.0:
70+
- seek-oss/docker-ecr-cache#v2.0.0:
7171
cache-on:
7272
- '**/package.json' # monorepo with multiple manifest files
7373
- yarn.lock
@@ -84,9 +84,9 @@ It's possible to specify the Dockerfile to use by:
8484
steps:
8585
- command: echo wow
8686
plugins:
87-
- seek-oss/docker-ecr-cache#v1.11.0:
87+
- seek-oss/docker-ecr-cache#v2.0.0:
8888
dockerfile: my-dockerfile
89-
- docker#v3.8.0
89+
- docker#v3.11.0
9090
```
9191

9292
Alternatively, Dockerfile can be embedded inline:
@@ -95,14 +95,14 @@ Alternatively, Dockerfile can be embedded inline:
9595
steps:
9696
- command: echo wow
9797
plugins:
98-
- seek-oss/docker-ecr-cache#v1.11.0:
98+
- seek-oss/docker-ecr-cache#v2.0.0:
9999
dockerfile-inline: |
100100
FROM node:16-alpine
101101
WORKDIR /workdir
102102
COPY package.json package-lock.json /workdir
103103
RUN npm install
104104
105-
- docker#v3.8.0
105+
- docker#v3.11.0
106106
```
107107

108108
### Building on the resulting image
@@ -124,7 +124,7 @@ steps:
124124
--build-arg BUILDKITE_PLUGIN_DOCKER_ECR_CACHE_EXPORT_TAG
125125
--file Dockerfile.secondary
126126
plugins:
127-
- seek-oss/docker-ecr-cache#v1.11.0
127+
- seek-oss/docker-ecr-cache#v2.0.0
128128
```
129129

130130
Your `Dockerfile.secondary` can then [dynamically use these args](https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact):
@@ -152,9 +152,9 @@ stage to run commands against:
152152
steps:
153153
- command: cargo test
154154
plugins:
155-
- seek-oss/docker-ecr-cache#v1.11.0:
155+
- seek-oss/docker-ecr-cache#v2.0.0:
156156
target: build-deps
157-
- docker#v3.8.0
157+
- docker#v3.11.0
158158
```
159159

160160
### Specifying build context
@@ -167,10 +167,10 @@ The `context` property can be used to specify a different path.
167167
steps:
168168
- command: cargo test
169169
plugins:
170-
- seek-oss/docker-ecr-cache#v1.11.0:
170+
- seek-oss/docker-ecr-cache#v2.0.0:
171171
dockerfile: dockerfiles/test/Dockerfile
172172
context: '.'
173-
- docker#v3.8.0
173+
- docker#v3.11.0
174174
```
175175

176176
### Specifying build args
@@ -196,11 +196,11 @@ steps:
196196
env:
197197
ARG_1: wow
198198
plugins:
199-
- seek-oss/docker-ecr-cache#v1.11.0:
199+
- seek-oss/docker-ecr-cache#v2.0.0:
200200
build-args:
201201
- ARG_1
202202
- ARG_2=such
203-
- docker#v3.8.0
203+
- docker#v3.11.0
204204
```
205205

206206
Additional `docker build` arguments be passed via the `additional-build-args` setting:
@@ -211,9 +211,9 @@ steps:
211211
env:
212212
ARG_1: wow
213213
plugins:
214-
- seek-oss/docker-ecr-cache#v1.11.0:
214+
- seek-oss/docker-ecr-cache#v2.0.0:
215215
additional-build-args: '--ssh= default=\$SSH_AUTH_SOCK'
216-
- docker#v3.8.0
216+
- docker#v3.11.0
217217
```
218218

219219
### Specifying secrets
@@ -239,10 +239,10 @@ steps:
239239
env:
240240
SECRET: wow
241241
plugins:
242-
- seek-oss/docker-ecr-cache#v1.11.0:
242+
- seek-oss/docker-ecr-cache#v2.0.0:
243243
secrets:
244244
- SECRET
245-
- docker#v3.8.0
245+
- docker#v3.11.0
246246
```
247247

248248
You can also specify the full `--secret` flag value if you need more control:
@@ -255,10 +255,10 @@ steps:
255255
plugins:
256256
- seek-oss/private-npm#v1.2.0:
257257
env: SECRET
258-
- seek-oss/docker-ecr-cache#v1.11.0:
258+
- seek-oss/docker-ecr-cache#v2.0.0:
259259
secrets:
260260
- id=npmrc,src=.npmrc
261-
- docker#v3.8.0
261+
- docker#v3.11.0
262262
```
263263

264264
You must have a recent version of Docker with BuildKit support to use secrets.
@@ -273,9 +273,9 @@ By default images are kept in ECR for up to 30 days. This can be changed by spec
273273
steps:
274274
- command: echo wow
275275
plugins:
276-
- seek-oss/docker-ecr-cache#v1.11.0:
276+
- seek-oss/docker-ecr-cache#v2.0.0:
277277
max-age-days: 7
278-
- docker#v3.8.0
278+
- docker#v3.11.0
279279
```
280280

281281
### Changing the name of exported variable
@@ -286,7 +286,7 @@ By default, image name and computed tag are exported to the Docker buildkite plu
286286
steps:
287287
- command: echo wow
288288
plugins:
289-
- seek-oss/docker-ecr-cache#v1.11.0:
289+
- seek-oss/docker-ecr-cache#v2.0.0:
290290
export-env-variable: BUILDKITE_PLUGIN_MY_CUSTOM_PLUGIN_CACHE_IMAGE
291291
- my-custom-plugin#v1.0.0:
292292
```
@@ -303,12 +303,12 @@ optionally use a custom repository name:
303303
steps:
304304
- command: echo wow
305305
plugins:
306-
- seek-oss/docker-ecr-cache#v1.11.0:
306+
- seek-oss/docker-ecr-cache#v2.0.0:
307307
ecr-name: my-unique-repository-name
308308
ecr-tags:
309309
Key: Value
310310
Key2: Value2
311-
- docker#v3.8.0
311+
- docker#v3.11.0
312312
```
313313

314314
#### Specifying a region
@@ -319,9 +319,9 @@ By default, the plugin uses the region specified in the `AWS_DEFAULT_REGION` env
319319
steps:
320320
- command: echo wow
321321
plugins:
322-
- seek-oss/docker-ecr-cache#v1.11.0:
322+
- seek-oss/docker-ecr-cache#v2.0.0:
323323
region: ap-southeast-2
324-
- docker#v3.8.0
324+
- docker#v3.11.0
325325
```
326326

327327
#### Required permissions
@@ -361,7 +361,7 @@ Example:
361361
```yaml
362362
- command: echo wow
363363
plugins:
364-
- seek-oss/docker-ecr-cache#v1.11.0:
364+
- seek-oss/docker-ecr-cache#v2.0.0:
365365
registry-provider: gcr
366366
gcp-project: foo-bar-123456
367367
```

0 commit comments

Comments
 (0)