2019-12-27 11:07:53 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
|
2020-05-03 12:03:53 +00:00
|
|
|
declare -A BUILDS=(["linux"]="amd64 arm32v7 arm64v8")
|
2020-04-03 05:13:24 +00:00
|
|
|
|
|
|
|
for BUILD_OS in "${!BUILDS[@]}"; do
|
|
|
|
for BUILD_ARCH in ${BUILDS[$BUILD_OS]}; do
|
2020-03-09 01:32:07 +00:00
|
|
|
cat << EOF
|
|
|
|
- label: ":docker: Build Image [${BUILD_ARCH}]"
|
|
|
|
command: "authelia-scripts docker build --arch=${BUILD_ARCH}"
|
|
|
|
agents:
|
2020-04-08 01:31:33 +00:00
|
|
|
build: "${BUILD_OS}-${BUILD_ARCH}"
|
2020-03-09 01:32:07 +00:00
|
|
|
artifact_paths:
|
|
|
|
- "authelia-image-${BUILD_ARCH}.tar.zst"
|
2020-04-03 05:13:24 +00:00
|
|
|
- "authelia-${BUILD_OS}-${BUILD_ARCH}.tar.gz"
|
|
|
|
- "authelia-${BUILD_OS}-${BUILD_ARCH}.tar.gz.sha256"
|
2020-03-09 01:32:07 +00:00
|
|
|
env:
|
|
|
|
ARCH: "${BUILD_ARCH}"
|
2020-04-03 05:13:24 +00:00
|
|
|
OS: "${BUILD_OS}"
|
|
|
|
key: "build-docker-${BUILD_OS}-${BUILD_ARCH}"
|
2020-03-09 01:32:07 +00:00
|
|
|
EOF
|
2020-04-03 05:13:24 +00:00
|
|
|
done
|
2019-12-27 11:07:53 +00:00
|
|
|
done
|