authelia/.buildkite/steps/aurpackages.sh
Amir Zarrinkafsh b70c4a744f
[Buildkite] Ignore unnecessary CI steps for docs/* only based commits (#690)
* [Buildkite] Ignore build and deploy steps for [DOCS] only based commits

* [Buildkite] Convert static pipelines into dynamic pipelines

* [Buildkite] Convert dynamic pipeline steps into heredocs

* [Buildkite] Fix indentation for aurpackages.sh

* [Buildkite] Rename docs bypass env variable

* [Buildkite] Fix automatic retries in integration tests
2020-03-09 12:32:07 +11:00

24 lines
440 B
Bash
Executable File

#!/bin/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