mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
93e20a44e9
* feat: build and distribute .deb packages Creates .deb packages for distribution via GitHub releases and Buildkite builds for the following architectures: * amd64 * armhf * arm64 * fix: pkgver reference in debpackages.sh * refactor: split deb packaging jobs and quote variables * fix: pipeline upload for debpackages * fix: depends_on key for debpackages * fix: add depends_on: ~ for debpackages step * fix: pre-artifact hook for debpackages * fix: add .deb suffix in pre-artifact hook * fix: variable reference in debhelper.sh * refactor: silence wget output in debhelper.sh * refactor: make build concurrency gate only depend_on docker builds * refactor: make build concurrency gate also depend_on coverage build * refactor: remove dependencies for build concurrency gate
36 lines
700 B
Bash
Executable File
36 lines
700 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eu
|
|
|
|
for DEB_PACKAGE in amd64 armhf arm64; do
|
|
cat << EOF
|
|
- label: ":debian: Build Package [${DEB_PACKAGE}]"
|
|
command: "debhelper.sh"
|
|
artifact_paths:
|
|
- "*.deb"
|
|
- "*.deb.sha256"
|
|
env:
|
|
PACKAGE: "${DEB_PACKAGE}"
|
|
EOF
|
|
if [[ "${DEB_PACKAGE}" == "amd64" ]]; then
|
|
cat << EOF
|
|
ARCH: "${DEB_PACKAGE}"
|
|
depends_on:
|
|
- "build-docker-linux-amd64"
|
|
EOF
|
|
elif [[ "${DEB_PACKAGE}" == "armhf" ]]; then
|
|
cat << EOF
|
|
ARCH: "arm32v7"
|
|
depends_on:
|
|
- "build-docker-linux-arm32v7"
|
|
EOF
|
|
else
|
|
cat << EOF
|
|
ARCH: "arm64v8"
|
|
depends_on:
|
|
- "build-docker-linux-arm64v8"
|
|
EOF
|
|
fi
|
|
cat << EOF
|
|
key: "build-deb-package-${DEB_PACKAGE}"
|
|
EOF
|
|
done |