From 2b627c6c04d5d10564fe79b35a99146aaad746ae Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Wed, 29 Apr 2020 14:06:35 +1000 Subject: [PATCH] [CI] Set concurrency groups at a global level and simplify pipeline (#942) --- .buildkite/deployment.sh | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/.buildkite/deployment.sh b/.buildkite/deployment.sh index 92e468244..22b5b982d 100755 --- a/.buildkite/deployment.sh +++ b/.buildkite/deployment.sh @@ -24,30 +24,16 @@ env: steps: - label: ":docker: Image Deployments" command: ".buildkite/steps/deployimages.sh | buildkite-agent pipeline upload" - concurrency: 1 - concurrency_group: "deployments" - if: build.branch == "master" && build.env("CI_BYPASS") != "true" - - - label: ":docker: Image Deployments" - command: ".buildkite/steps/deployimages.sh | buildkite-agent pipeline upload" - if: build.branch != "master" && build.env("CI_BYPASS") != "true" + if: build.env("CI_BYPASS") != "true" - wait: if: build.env("CI_BYPASS") != "true" - label: ":docker: Deploy Manifests" command: "authelia-scripts docker push-manifest" - concurrency: 1 - concurrency_group: "deployments" env: DOCKER_CLI_EXPERIMENTAL: "enabled" - if: build.branch == "master" && build.env("CI_BYPASS") != "true" - - - label: ":docker: Deploy Manifests" - command: "authelia-scripts docker push-manifest" - env: - DOCKER_CLI_EXPERIMENTAL: "enabled" - if: build.branch != "master" && build.env("CI_BYPASS") != "true" + if: build.env("CI_BYPASS") != "true" - label: ":github: Deploy Artifacts" command: "ghartifacts.sh" @@ -61,15 +47,11 @@ steps: - label: ":linux: Deploy AUR" command: ".buildkite/steps/aurpackages.sh | buildkite-agent pipeline upload" - concurrency: 1 - concurrency_group: "aur" depends_on: ~ if: build.tag != null || build.branch == "master" && build.env("CI_BYPASS") != "true" - label: ":book: Deploy Documentation" command: "syncdoc.sh" - concurrency: 1 - concurrency_group: "documentation" depends_on: ~ agents: upload: "fast"