authelia/.buildkite/hooks/post-checkout
Amir Zarrinkafsh 1059551133
Optimise deploy artifacts step (#564)
* Optimise deploy artifacts step
authelia-scripts is not required to publish GitHub artifacts as we utilise [Hub](https://hub.github.com/), this should save ~10 seconds in this step.

* Specify release number in pipeline

* Change buildkite and github published artifacts back to gzip

* Update README.md
2020-01-20 10:53:55 +11:00

19 lines
522 B
Bash
Executable File

#!/bin/bash
set +u
if [[ ! $BUILDKITE_COMMAND =~ "buildkite-agent pipeline upload" ]] || \
[[ $BUILDKITE_COMMAND == ".buildkite/steps/e2etests.sh | buildkite-agent pipeline upload" ]] || \
[[ ! $BUILDKITE_COMMAND == ".buildkite/steps/ghartifacts.sh" ]];
then
echo "--- :buildkite: Setting up Build environment"
source bootstrap.sh
if [[ $BUILDKITE_COMMAND == "authelia-scripts --log-level debug ci" ]];
then
go mod download
fi
if [[ $BUILDKITE_LABEL =~ ":selenium:" ]];
then
go mod download
fi
fi