summaryrefslogtreecommitdiff
path: root/.buildkite
diff options
context:
space:
mode:
authorAmir Zarrinkafsh <nightah@me.com>2021-10-07 09:45:37 +1100
committerGitHub <noreply@github.com>2021-10-07 09:45:37 +1100
commit26de57a2973247b60bd4bcc2700e860cee68e24f (patch)
treec3cf61e4fc3e6abb1cce7b8ebd1b6c68728e70f2 /.buildkite
parent65dd2a1341f4af4c3868fedba723af6f6fa761e1 (diff)
ci(buildkite): skip front/backend builds for renovate deps (#2462)
* ci(buildkite): skip front/backend builds for renovate deps * ci(buildkite): make unit-test artifact compression conditional
Diffstat (limited to '.buildkite')
-rwxr-xr-x.buildkite/hooks/pre-artifact18
1 files changed, 10 insertions, 8 deletions
diff --git a/.buildkite/hooks/pre-artifact b/.buildkite/hooks/pre-artifact
index 44fe709d5..362dbe840 100755
--- a/.buildkite/hooks/pre-artifact
+++ b/.buildkite/hooks/pre-artifact
@@ -6,16 +6,18 @@ declare -A BUILDS=(["linux"]="amd64 arm arm64 amd64-musl arm-musl arm64-musl" ["
DOCKER_IMAGE=authelia/authelia
if [[ "${BUILDKITE_LABEL}" == ":hammer_and_wrench: Unit Test" ]]; then
- echo "--- :docker: Saving artifacts for :buildkite: :docker: :github: releases"
- for OS in "${!BUILDS[@]}"; do
- for ARCH in ${BUILDS[$OS]}; do
- tar -czf "authelia-${OS}-${ARCH}.tar.gz" "authelia-${OS}-${ARCH}" authelia.service config.template.yml
- sha256sum "authelia-${OS}-${ARCH}.tar.gz" > "authelia-${OS}-${ARCH}.tar.gz.sha256"
+ if [[ ! "${BUILDKITE_BRANCH}" =~ ^renovate/ ]]; then
+ echo "--- :docker: Saving artifacts for :buildkite: :docker: :github: releases"
+ for OS in "${!BUILDS[@]}"; do
+ for ARCH in ${BUILDS[$OS]}; do
+ tar -czf "authelia-${OS}-${ARCH}.tar.gz" "authelia-${OS}-${ARCH}" authelia.service config.template.yml
+ sha256sum "authelia-${OS}-${ARCH}.tar.gz" > "authelia-${OS}-${ARCH}.tar.gz.sha256"
+ done
done
- done
- tar -czf authelia-public_html.tar.gz -C dist public_html
- sha256sum authelia-public_html.tar.gz > authelia-public_html.tar.gz.sha256
+ tar -czf authelia-public_html.tar.gz -C dist public_html
+ sha256sum authelia-public_html.tar.gz > authelia-public_html.tar.gz.sha256
+ fi
fi
if [[ "${BUILDKITE_LABEL}" == ":docker: Build Image [coverage]" ]]; then