authelia/.buildkite/hooks/pre-command
Amir Zarrinkafsh 2fb20882d9
Utilise Buildkite for Authelia CI/CD (#507)
Publish steps are currently disabled.
2019-12-27 22:07:53 +11:00

21 lines
566 B
Bash
Executable File

#!/bin/bash
set +u
if [[ $BUILDKITE_LABEL =~ ":selenium:" ]];
then
echo "--- :go::node: Extracting build artifacts"
buildkite-agent artifact download "dist.tar.gz" . && tar xf dist.tar.gz
buildkite-agent artifact download "web.tar.gz" . && tar xf web.tar.gz
fi
if [[ $BUILDKITE_LABEL =~ ":docker: Deploy Image" ]];
then
buildkite-agent artifact download "authelia-image-$ARCH*" .
zcat authelia-image-$ARCH.tar.gz | docker load
fi
if [[ $BUILDKITE_LABEL == ":github: Deploy Artifacts" ]];
then
buildkite-agent artifact download "authelia-linux-*" .
fi