Skip to content

Commit e015a5c

Browse files
committed
Added new option and clarifications to documentation
1 parent 9ab4a48 commit e015a5c

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ The name of the service the command should be run within. If the docker-compose
3131

3232
A list of services to push. You can specify just the service name to push or the format `service:registry:tag` to override where the service's image is pushed to. Needless to say, the image for the service must have been built in the very same step or built and pushed previously to ensure it is available for pushing.
3333

34+
**Important**: when the image for a service is pushed it sets metadata on the build so that future steps will know to use that image to run that service. This can lead to race conditions when pushing multiple images for a service. Can be turned off with the `push-metadata` option.
35+
3436
:warning: If a service does not have an `image` configuration and no registry/tag are specified in the `push` option, pushing of the service will be skipped by docker.
3537

3638
:warning: The `push` command will fail when the image refers to a remote registry that requires a login and the agent has not been authenticated for it (for example, using the [ecr](https://github.com/buildkite-plugins/ecr-buildkite-plugin) or [docker-login](https://github.com/buildkite-plugins/docker-login-buildkite-plugin) plugins).
@@ -169,6 +171,12 @@ Default: `false`
169171

170172
A number of times to retry failed docker pull. Defaults to 0.
171173

174+
#### `push-metadata` (push only, boolean)
175+
176+
Whether to set the metadata aboout the image for a service being pushed.
177+
178+
Default: `true`.
179+
172180
#### `push-retries` (push only, integer)
173181

174182
A number of times to retry failed docker push. Defaults to 0.

plugin.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ configuration:
128128
minimum: 1
129129
pull-retries:
130130
type: integer
131+
push-metadata:
132+
type: boolean
131133
push-retries:
132134
type: integer
133135
quiet-pull:
@@ -211,6 +213,7 @@ configuration:
211213
propagate-uid-gid: [ run ]
212214
pull: [ run ]
213215
pull-retries: [ run ]
216+
push-metadata: [ push ]
214217
push-retries: [ push ]
215218
quiet-pull: [ push, run]
216219
quiet-push: [ push ]

0 commit comments

Comments
 (0)