Group docker deployment steps to prevent race conditions/conflicts

pull/559/head
Amir Zarrinkafsh 2020-01-18 10:58:58 +11:00
parent 1f684dbc75
commit a0b79c61d2
1 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,8 @@ steps:
- label: ":docker: Image Deployments" - label: ":docker: Image Deployments"
command: ".buildkite/steps/deployimages.sh | buildkite-agent pipeline upload" command: ".buildkite/steps/deployimages.sh | buildkite-agent pipeline upload"
branches: "master v*" branches: "master v*"
concurrency: 1
concurrency_group: "deployments"
- wait: - wait:
if: build.branch == "master" || build.branch =~ /^v/ if: build.branch == "master" || build.branch =~ /^v/
@ -30,6 +32,8 @@ steps:
- label: ":docker: Deploy Manifests" - label: ":docker: Deploy Manifests"
command: "authelia-scripts docker push-manifest" command: "authelia-scripts docker push-manifest"
branches: "master v*" branches: "master v*"
concurrency: 1
concurrency_group: "deployments"
env: env:
DOCKER_CLI_EXPERIMENTAL: "enabled" DOCKER_CLI_EXPERIMENTAL: "enabled"