From 327765f132e8239b90fc36df5d167dd658f1911f Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Sat, 7 Aug 2021 11:04:21 +1000 Subject: [PATCH] ci(buildkite): allow manual retry on successful steps (#2267) This permits manual retry on specific steps which can cause problematic issues for example when a node runs out of disk space. By allowing this we should be able to recover problematic builds instead of forcing a complete rebuild which may be undesirable on the `master` or other production branches. --- .buildkite/deployment.sh | 3 +++ .buildkite/steps/buildimages.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.buildkite/deployment.sh b/.buildkite/deployment.sh index f87148503..860bb6bf5 100755 --- a/.buildkite/deployment.sh +++ b/.buildkite/deployment.sh @@ -31,6 +31,9 @@ steps: - label: ":docker: Deploy Manifests" command: "authelia-scripts docker push-manifest" + retry: + manual: + permit_on_passed: true env: DOCKER_CLI_EXPERIMENTAL: "enabled" agents: diff --git a/.buildkite/steps/buildimages.sh b/.buildkite/steps/buildimages.sh index 00d40ab00..8c543d22b 100755 --- a/.buildkite/steps/buildimages.sh +++ b/.buildkite/steps/buildimages.sh @@ -8,6 +8,9 @@ for BUILD_OS in "${!BUILDS[@]}"; do cat << EOF - label: ":docker: Build Image [${BUILD_ARCH}]" command: "authelia-scripts docker build --arch=${BUILD_ARCH}" + retry: + manual: + permit_on_passed: true agents: build: "${BUILD_OS}-${BUILD_ARCH}" artifact_paths: