authelia/.buildkite/steps/aurpackages.sh
vdot0x23 6ccc92e47e
do not hardcode /bin/bash (#1122)
Co-authored-by: Victor Büttner <victor@0x23.dk>
Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
2020-06-18 09:49:13 +02:00

24 lines
448 B
Bash
Executable File

#!/usr/bin/env bash
set -eu
for AUR_PACKAGE in authelia authelia-bin authelia-git; do
cat << EOF
- label: ":linux: Deploy AUR Package [${AUR_PACKAGE}]"
command: "aurhelper.sh"
agents:
upload: "fast"
env:
PACKAGE: "${AUR_PACKAGE}"
EOF
if [[ "${AUR_PACKAGE}" != "authelia-git" ]]; then
cat << EOF
depends_on:
- "artifacts"
if: build.tag != null
EOF
else
cat << EOF
if: build.branch == "master"
EOF
fi
done