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