diff --git a/.buildkite/deployment.yml b/.buildkite/deployment.yml index 3716d6b7..355f3289 100644 --- a/.buildkite/deployment.yml +++ b/.buildkite/deployment.yml @@ -15,6 +15,8 @@ steps: - label: ":github: Deploy Artifacts" command: ".buildkite/steps/ghartifacts.sh" + retry: + automatic: true agents: upload: "fast" key: "artifacts" diff --git a/.buildkite/steps/ghartifacts.sh b/.buildkite/steps/ghartifacts.sh index cf08984f..dcfe3c21 100755 --- a/.buildkite/steps/ghartifacts.sh +++ b/.buildkite/steps/ghartifacts.sh @@ -13,4 +13,4 @@ done echo "--- :github: Deploy artifacts for release: ${BUILDKITE_TAG}" git fetch -hub release create "${BUILDKITE_TAG}" "${artifacts[@]}" -F <(echo -e "${BUILDKITE_TAG}\n\n## Changelog\n$(git log --oneline --pretty='* %h %s' $(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))...$(git describe --abbrev=0 --tags))\n\n## Docker Container\n* \`docker pull authelia/authelia:${BUILDKITE_TAG//v}\`") \ No newline at end of file +hub release create "${BUILDKITE_TAG}" "${artifacts[@]}" -F <(echo -e "${BUILDKITE_TAG}\n\n## Changelog\n$(git log --oneline --pretty='* %h %s' $(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))...$(git describe --abbrev=0 --tags))\n\n## Docker Container\n* \`docker pull authelia/authelia:${BUILDKITE_TAG//v}\`") || hub release delete "${BUILDKITE_TAG}" && false