mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
Optimise Buildkite steps
* Utilise multi-threaded zstd for compression * Fix container removal on dirty exit * Optimise build step agents
This commit is contained in:
parent
e4764ad2cf
commit
1b39d28cbe
|
@ -8,6 +8,6 @@ then
|
||||||
if [[ ${CONTAINERS} != "" ]];
|
if [[ ${CONTAINERS} != "" ]];
|
||||||
then
|
then
|
||||||
echo "--- :docker: Clean environment"
|
echo "--- :docker: Clean environment"
|
||||||
docker rm -f "${CONTAINERS}"
|
docker rm -f ${CONTAINERS}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
|
@ -7,8 +7,8 @@ DOCKER_IMAGE=authelia/authelia
|
||||||
if [[ $BUILDKITE_COMMAND == "authelia-scripts --log-level debug ci" ]];
|
if [[ $BUILDKITE_COMMAND == "authelia-scripts --log-level debug ci" ]];
|
||||||
then
|
then
|
||||||
echo "--- :go::node: Saving artifacts for :chrome::selenium: Integration tests"
|
echo "--- :go::node: Saving artifacts for :chrome::selenium: Integration tests"
|
||||||
tar --zstd -cf dist.tar.zst dist
|
tar -I 'zstdmt -T0 -12' -cf dist.tar.zst dist
|
||||||
tar --zstd -cf web.tar.zst web
|
tar -I 'zstdmt -T0 -12' -cf web.tar.zst web
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $BUILDKITE_LABEL =~ ":docker: Build Image" ]];
|
if [[ $BUILDKITE_LABEL =~ ":docker: Build Image" ]];
|
||||||
|
@ -19,8 +19,8 @@ then
|
||||||
docker cp authelia-binary:/usr/app/authelia ./authelia-linux-"${ARCH}"
|
docker cp authelia-binary:/usr/app/authelia ./authelia-linux-"${ARCH}"
|
||||||
docker cp authelia-binary:/usr/app/public_html ./
|
docker cp authelia-binary:/usr/app/public_html ./
|
||||||
docker rm -f authelia-binary
|
docker rm -f authelia-binary
|
||||||
tar --zstd -cf authelia-linux-"${ARCH}".tar.zst authelia-linux-"${ARCH}" public_html
|
tar -I 'zstdmt -T0 -12' -cf authelia-linux-"${ARCH}".tar.zst authelia-linux-"${ARCH}" public_html
|
||||||
sha256sum authelia-linux-"${ARCH}".tar.zst > authelia-linux-"${ARCH}".tar.zst.sha256
|
sha256sum authelia-linux-"${ARCH}".tar.zst > authelia-linux-"${ARCH}".tar.zst.sha256
|
||||||
# Saving image for push to DockerHub
|
# Saving image for push to DockerHub
|
||||||
docker save $DOCKER_IMAGE | zstd > authelia-image-"${ARCH}".tar.zst
|
docker save $DOCKER_IMAGE | zstdmt -T0 -12 > authelia-image-"${ARCH}".tar.zst
|
||||||
fi
|
fi
|
|
@ -1,8 +1,6 @@
|
||||||
steps:
|
steps:
|
||||||
- label: ":hammer_and_wrench: Build & Test"
|
- label: ":hammer_and_wrench: Build & Test"
|
||||||
command: "authelia-scripts --log-level debug ci"
|
command: "authelia-scripts --log-level debug ci"
|
||||||
agents:
|
|
||||||
upload: "fast"
|
|
||||||
artifact_paths:
|
artifact_paths:
|
||||||
- "dist.tar.zst"
|
- "dist.tar.zst"
|
||||||
- "web.tar.zst"
|
- "web.tar.zst"
|
||||||
|
|
|
@ -99,7 +99,7 @@ jobs:
|
||||||
- docker create --name authelia-binary authelia/authelia:${TRAVIS_TAG:1}-$ARCH
|
- docker create --name authelia-binary authelia/authelia:${TRAVIS_TAG:1}-$ARCH
|
||||||
- docker cp authelia-binary:/usr/app/authelia ./authelia-linux-$ARCH
|
- docker cp authelia-binary:/usr/app/authelia ./authelia-linux-$ARCH
|
||||||
- docker cp authelia-binary:/usr/app/public_html ./
|
- docker cp authelia-binary:/usr/app/public_html ./
|
||||||
- tar --zstd -cf authelia-linux-$ARCH.tar.zst authelia-linux-$ARCH public_html
|
- tar -I 'zstdmt -T0 -12' -cf authelia-linux-$ARCH.tar.zst authelia-linux-$ARCH public_html
|
||||||
- sha256sum authelia-linux-$ARCH.tar.zst > authelia-linux-$ARCH.tar.zst.sha256
|
- sha256sum authelia-linux-$ARCH.tar.zst > authelia-linux-$ARCH.tar.zst.sha256
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
|
|
Loading…
Reference in New Issue
Block a user