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} != "" ]];
|
||||
then
|
||||
echo "--- :docker: Clean environment"
|
||||
docker rm -f "${CONTAINERS}"
|
||||
docker rm -f ${CONTAINERS}
|
||||
fi
|
||||
fi
|
|
@ -7,8 +7,8 @@ DOCKER_IMAGE=authelia/authelia
|
|||
if [[ $BUILDKITE_COMMAND == "authelia-scripts --log-level debug ci" ]];
|
||||
then
|
||||
echo "--- :go::node: Saving artifacts for :chrome::selenium: Integration tests"
|
||||
tar --zstd -cf dist.tar.zst dist
|
||||
tar --zstd -cf web.tar.zst web
|
||||
tar -I 'zstdmt -T0 -12' -cf dist.tar.zst dist
|
||||
tar -I 'zstdmt -T0 -12' -cf web.tar.zst web
|
||||
fi
|
||||
|
||||
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/public_html ./
|
||||
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
|
||||
# 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
|
|
@ -1,8 +1,6 @@
|
|||
steps:
|
||||
- label: ":hammer_and_wrench: Build & Test"
|
||||
command: "authelia-scripts --log-level debug ci"
|
||||
agents:
|
||||
upload: "fast"
|
||||
artifact_paths:
|
||||
- "dist.tar.zst"
|
||||
- "web.tar.zst"
|
||||
|
|
|
@ -99,7 +99,7 @@ jobs:
|
|||
- 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/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
|
||||
deploy:
|
||||
provider: releases
|
||||
|
|
Loading…
Reference in New Issue
Block a user