mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
d123fe4785
* [CI] Add Codecov support * [CI] Capture backend coverage from integration tests * [CI] Remove unnecessary artifacts for coverage build * [CI] Only run coverage elements where necessary * [CI] Simplify post-command hook * Fix yarn dependencies and collect coverage * [CI] Include cmd/authelia/ path in coverage * [CI] Exclude internal/suites/ in coverage Closes #1061.
24 lines
1010 B
Bash
Executable File
24 lines
1010 B
Bash
Executable File
#!/bin/bash
|
|
set -eu
|
|
|
|
artifacts=()
|
|
|
|
for FILES in \
|
|
authelia-linux-amd64.tar.gz authelia-linux-amd64.tar.gz.sha256 \
|
|
authelia-linux-arm32v7.tar.gz authelia-linux-arm32v7.tar.gz.sha256 \
|
|
authelia-linux-arm64v8.tar.gz authelia-linux-arm64v8.tar.gz.sha256 \
|
|
authelia-public_html.tar.gz authelia-public_html.tar.gz.sha256;
|
|
do
|
|
artifacts+=(-a "${FILES}")
|
|
done
|
|
|
|
echo "--- :github: Deploy artifacts for release: ${BUILDKITE_TAG}"
|
|
hub release create "${BUILDKITE_TAG}" "${artifacts[@]}" -F <(echo -e "${BUILDKITE_TAG}\n\n$(awk "/${BUILDKITE_TAG}/" RS="## Breaking" BREAKING.md)\n\n## Changelog\n$(git log --oneline --pretty='* %h %s' $(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))...$(git describe --abbrev=0 --tags))\n\n## Docker Container\n* \`docker pull authelia/authelia:${BUILDKITE_TAG//v}\`" | sed -e 's/^ /## Breaking /' | sed -e '/./b' -e :n -e 'N;s/\n$//;tn'); EXIT=$?
|
|
|
|
if [[ $EXIT == 0 ]];
|
|
then
|
|
exit
|
|
else
|
|
hub release delete "${BUILDKITE_TAG}" && false
|
|
fi
|