2020-06-18 07:49:13 +00:00
|
|
|
#!/usr/bin/env bash
|
2019-12-27 11:07:53 +00:00
|
|
|
set -eu
|
|
|
|
|
|
|
|
artifacts=()
|
|
|
|
|
2020-01-05 14:31:33 +00:00
|
|
|
for FILES in \
|
2020-01-19 23:53:55 +00:00
|
|
|
authelia-linux-amd64.tar.gz authelia-linux-amd64.tar.gz.sha256 \
|
|
|
|
authelia-linux-arm32v7.tar.gz authelia-linux-arm32v7.tar.gz.sha256 \
|
2020-04-03 05:13:24 +00:00
|
|
|
authelia-linux-arm64v8.tar.gz authelia-linux-arm64v8.tar.gz.sha256 \
|
2020-04-28 14:07:20 +00:00
|
|
|
authelia-public_html.tar.gz authelia-public_html.tar.gz.sha256;
|
2019-12-27 11:07:53 +00:00
|
|
|
do
|
2020-01-05 14:31:33 +00:00
|
|
|
artifacts+=(-a "${FILES}")
|
2019-12-27 11:07:53 +00:00
|
|
|
done
|
|
|
|
|
2020-01-19 23:53:55 +00:00
|
|
|
echo "--- :github: Deploy artifacts for release: ${BUILDKITE_TAG}"
|
2021-02-12 03:00:36 +00:00
|
|
|
hub release create "${BUILDKITE_TAG}" "${artifacts[@]}" -F <(echo -e "${BUILDKITE_TAG}\n$(conventional-changelog -p angular -o /dev/stdout -r 2 | sed -e '1,3d')\n\n### Docker Container\n* \`docker pull authelia/authelia:${BUILDKITE_TAG//v}\`"); EXIT=$?
|
2020-03-01 04:56:04 +00:00
|
|
|
|
2020-06-05 00:43:19 +00:00
|
|
|
if [[ $EXIT == 0 ]];
|
2020-03-01 04:56:04 +00:00
|
|
|
then
|
|
|
|
exit
|
|
|
|
else
|
|
|
|
hub release delete "${BUILDKITE_TAG}" && false
|
|
|
|
fi
|