mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
e930b76464
Occasionally during a manifest deployment tags can be removed and the step may fail. To ensure the manifest step can be completed successfully it would require re-pushing the tags that had been removed. Turning on the `permit_on_passed` option allows us to control this all through the Buildkite interface as opposed to manual intervention.
32 lines
621 B
Bash
Executable File
32 lines
621 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eu
|
|
|
|
for BUILD_ARCH in amd64 arm32v7 arm64v8; do
|
|
cat << EOF
|
|
- label: ":docker: Deploy Image [${BUILD_ARCH}]"
|
|
command: "authelia-scripts docker push-image --arch=${BUILD_ARCH}"
|
|
retry:
|
|
manual:
|
|
permit_on_passed: true
|
|
depends_on:
|
|
EOF
|
|
if [[ "${BUILD_ARCH}" == "amd64" ]]; then
|
|
cat << EOF
|
|
- "build-docker-linux-amd64"
|
|
EOF
|
|
elif [[ "${BUILD_ARCH}" == "arm32v7" ]]; then
|
|
cat << EOF
|
|
- "build-docker-linux-arm32v7"
|
|
EOF
|
|
else
|
|
cat << EOF
|
|
- "build-docker-linux-arm64v8"
|
|
EOF
|
|
fi
|
|
cat << EOF
|
|
agents:
|
|
upload: "fast"
|
|
env:
|
|
ARCH: "${BUILD_ARCH}"
|
|
EOF
|
|
done |