2020-06-18 14:49:13 +07:00
|
|
|
#!/usr/bin/env bash
|
2019-12-27 18:07:53 +07:00
|
|
|
set -eu
|
|
|
|
|
2020-03-09 08:32:07 +07:00
|
|
|
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}"
|
2021-08-05 15:52:30 +07:00
|
|
|
retry:
|
|
|
|
manual:
|
|
|
|
permit_on_passed: true
|
2020-05-02 22:05:11 +07:00
|
|
|
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
|
2020-03-09 08:32:07 +07:00
|
|
|
agents:
|
|
|
|
upload: "fast"
|
|
|
|
env:
|
|
|
|
ARCH: "${BUILD_ARCH}"
|
|
|
|
EOF
|
2019-12-27 18:07:53 +07:00
|
|
|
done
|