authelia/.buildkite/steps/aurpackages.sh
Amir Zarrinkafsh 447b2461e4
[Buildkite] Automate CD for AUR packages (#644)
* [Buildkite] Automate continuous deployment for AUR packages

* [Buildkite] Make AUR deploy step conditional
2020-02-20 10:25:28 +11:00

20 lines
527 B
Bash
Executable File

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