@@ -10,7 +10,7 @@ The following pipeline will run `test.sh` inside a `app` service container using
10
10
steps :
11
11
- command : test.sh
12
12
plugins :
13
- - docker-compose#v5.5 .0:
13
+ - docker-compose#v5.7 .0:
14
14
run : app
15
15
` ` `
16
16
19
19
` ` ` yml
20
20
steps:
21
21
- plugins:
22
- - docker-compose#v5.5 .0:
22
+ - docker-compose#v5.7 .0:
23
23
run: app
24
24
command: ["custom", "command", "values"]
25
25
` ` `
@@ -30,7 +30,7 @@ The plugin will honor the value of the `COMPOSE_FILE` environment variable if on
30
30
steps:
31
31
- command: test.sh
32
32
plugins:
33
- - docker-compose#v5.5 .0:
33
+ - docker-compose#v5.7 .0:
34
34
run: app
35
35
config: docker-compose.tests.yml
36
36
env:
@@ -46,15 +46,15 @@ steps:
46
46
- plugins:
47
47
- docker-login#v2.0.1:
48
48
username: xyz
49
- - docker-compose#v5.5 .0:
49
+ - docker-compose#v5.7 .0:
50
50
build: app
51
51
push: app:index.docker.io/myorg/myrepo:tag
52
52
- wait
53
53
- command: test.sh
54
54
plugins:
55
55
- docker-login#v2.0.1:
56
56
username: xyz
57
- - docker-compose#v5.5 .0:
57
+ - docker-compose#v5.7 .0:
58
58
run: app
59
59
` ` `
60
60
71
71
- command: generate-dist.sh
72
72
artifact_paths: "dist/*"
73
73
plugins:
74
- - docker-compose#v5.5 .0:
74
+ - docker-compose#v5.7 .0:
75
75
run: app
76
76
volumes:
77
77
- "./dist:/folder/dist"
@@ -95,7 +95,7 @@ this plugin offers a `environment` block of its own:
95
95
steps:
96
96
- command: generate-dist.sh
97
97
plugins:
98
- - docker-compose#v5.5 .0:
98
+ - docker-compose#v5.7 .0:
99
99
run: app
100
100
env:
101
101
- BUILDKITE_BUILD_NUMBER
@@ -113,7 +113,7 @@ Alternatively, you can have the plugin add all environment variables defined for
113
113
steps:
114
114
- command: use-vars.sh
115
115
plugins:
116
- - docker-compose#v5.5 .0:
116
+ - docker-compose#v5.7 .0:
117
117
run: app
118
118
propagate-environment: true
119
119
` ` `
@@ -129,7 +129,7 @@ steps:
129
129
env:
130
130
COMPOSE_PROFILES: "frontend,debug"
131
131
plugins:
132
- - docker-compose#v5.5 .0:
132
+ - docker-compose#v5.7 .0:
133
133
run: app
134
134
` ` `
135
135
@@ -138,6 +138,7 @@ It is important to understand that, as documented in the official documentation,
138
138
# ## Container Labels
139
139
140
140
When running a command, the plugin will automatically add the following Docker labels to the container specified in the `run` option :
141
+
141
142
- ` com.buildkite.pipeline_name=${BUILDKITE_PIPELINE_NAME}`
142
143
- ` com.buildkite.pipeline_slug=${BUILDKITE_PIPELINE_SLUG}`
143
144
- ` com.buildkite.build_number=${BUILDKITE_BUILD_NUMBER}`
@@ -165,7 +166,7 @@ Alternatively, if you want to set build arguments when pre-building an image, th
165
166
steps:
166
167
- command: generate-dist.sh
167
168
plugins:
168
- - docker-compose#v5.5 .0:
169
+ - docker-compose#v5.7 .0:
169
170
build: app
170
171
args:
171
172
- MY_CUSTOM_ARG=panda
@@ -182,7 +183,7 @@ If you have multiple steps that use the same service/image (such as steps that r
182
183
steps:
183
184
- label: ":docker: Build"
184
185
plugins:
185
- - docker-compose#v5.5 .0:
186
+ - docker-compose#v5.7 .0:
186
187
build: app
187
188
push: app
188
189
@@ -192,7 +193,7 @@ steps:
192
193
command: test.sh
193
194
parallelism: 25
194
195
plugins:
195
- - docker-compose#v5.5 .0:
196
+ - docker-compose#v5.7 .0:
196
197
run: app
197
198
require-prebuild: true
198
199
` ` `
@@ -211,7 +212,7 @@ steps:
211
212
agents:
212
213
queue: docker-builder
213
214
plugins:
214
- - docker-compose#v5.5 .0:
215
+ - docker-compose#v5.7 .0:
215
216
build:
216
217
- app
217
218
- tests
@@ -225,7 +226,7 @@ steps:
225
226
command: test.sh
226
227
parallelism: 25
227
228
plugins:
228
- - docker-compose#v5.5 .0:
229
+ - docker-compose#v5.7 .0:
229
230
run: tests
230
231
` ` `
231
232
@@ -237,7 +238,7 @@ If you want to push your Docker images ready for deployment, you can use the `pu
237
238
steps:
238
239
- label: ":docker: Push"
239
240
plugins:
240
- - docker-compose#v5.5 .0:
241
+ - docker-compose#v5.7 .0:
241
242
push: app
242
243
` ` `
243
244
@@ -247,7 +248,7 @@ To push multiple images, you can use a list:
247
248
steps:
248
249
- label: ":docker: Push"
249
250
plugins:
250
- - docker-compose#v5.5 .0:
251
+ - docker-compose#v5.7 .0:
251
252
push:
252
253
- first-service
253
254
- second-service
@@ -259,7 +260,7 @@ If you want to push to a specific location (that's not defined as the `image` in
259
260
steps:
260
261
- label: ":docker: Push"
261
262
plugins:
262
- - docker-compose#v5.5 .0:
263
+ - docker-compose#v5.7 .0:
263
264
push:
264
265
- app:index.docker.io/myorg/myrepo/myapp
265
266
- app:index.docker.io/myorg/myrepo/myapp:latest
@@ -273,7 +274,7 @@ A newly spawned agent won't contain any of the docker caches for the first run w
273
274
steps:
274
275
- label: ":docker: Build an image"
275
276
plugins:
276
- - docker-compose#v5.5 .0:
277
+ - docker-compose#v5.7 .0:
277
278
build: app
278
279
push: app:index.docker.io/myorg/myrepo:my-branch
279
280
cache-from:
@@ -284,7 +285,7 @@ steps:
284
285
285
286
- label: ":docker: Push to final repository"
286
287
plugins:
287
- - docker-compose#v5.5 .0:
288
+ - docker-compose#v5.7 .0:
288
289
push:
289
290
- app:myregistry:port/myrepo/myapp:latest
290
291
` ` `
@@ -297,7 +298,7 @@ The values you add in the `cache-from` will be mapped to the corresponding servi
297
298
steps:
298
299
- label: ":docker: Build an image"
299
300
plugins:
300
- - docker-compose#v5.5 .0:
301
+ - docker-compose#v5.7 .0:
301
302
build: app
302
303
push: app:index.docker.io/myorg/myrepo:my-branch
303
304
cache-from:
@@ -308,7 +309,7 @@ steps:
308
309
309
310
- label: ":docker: Push to final repository"
310
311
plugins:
311
- - docker-compose#v5.5 .0:
312
+ - docker-compose#v5.7 .0:
312
313
push:
313
314
- app:myregistry:port/myrepo/myapp:latest
314
315
` ` `
@@ -325,7 +326,7 @@ The `docker` driver can handle most situations but for advance features with the
325
326
steps:
326
327
- label: ":docker: Build an image"
327
328
plugins:
328
- - docker-compose#v5.5 .0:
329
+ - docker-compose#v5.7 .0:
329
330
build: app
330
331
push: app:index.docker.io/myorg/myrepo:my-branch
331
332
cache-from:
@@ -347,7 +348,7 @@ By default, Builder Instances specified by `name` or that are created with `crea
347
348
steps:
348
349
- label: ":docker: Build an image"
349
350
plugins:
350
- - docker-compose#v5.5 .0:
351
+ - docker-compose#v5.7 .0:
351
352
build: app
352
353
push: app:index.docker.io/myorg/myrepo:my-branch
353
354
cache-from:
@@ -366,7 +367,7 @@ By default, Builder Instances specified by `name` or that are created with `crea
366
367
steps:
367
368
- label: ":docker: Build an image"
368
369
plugins:
369
- - docker-compose#v5.5 .0:
370
+ - docker-compose#v5.7 .0:
370
371
build: app
371
372
push: app:index.docker.io/myorg/myrepo:my-branch
372
373
cache-from:
@@ -392,7 +393,7 @@ A newly spawned agent won't contain any of the docker caches for the first run w
392
393
steps:
393
394
- label: ":docker: Build an image and push cache"
394
395
plugins:
395
- - docker-compose#v5.5 .0:
396
+ - docker-compose#v5.7 .0:
396
397
build: app
397
398
push: app:${DOCKER_REGISTRY}/${IMAGE_REPO}:cache
398
399
cache-from:
@@ -409,7 +410,7 @@ steps:
409
410
410
411
- label: ":docker: Build an image using remote cache"
411
412
plugins:
412
- - docker-compose#v5.5 .0:
413
+ - docker-compose#v5.7 .0:
413
414
build: app
414
415
cache-from:
415
416
- "app:type=registry,ref=${DOCKER_REGISTRY}/${IMAGE_REPO}:cache"
0 commit comments