Separate download and extract steps for reporting

This commit is contained in:
Amir Zarrinkafsh 2020-01-07 12:19:09 +11:00
parent e97a11a9c1
commit e4764ad2cf
2 changed files with 6 additions and 2 deletions

View File

@ -6,6 +6,7 @@ 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"
tar --zstd -cf dist.tar.zst dist tar --zstd -cf dist.tar.zst dist
tar --zstd -cf web.tar.zst web tar --zstd -cf web.tar.zst web
fi fi

View File

@ -4,9 +4,12 @@ set +u
if [[ $BUILDKITE_LABEL =~ ":selenium:" ]]; if [[ $BUILDKITE_LABEL =~ ":selenium:" ]];
then then
echo "--- :twisted_rightwards_arrows::desktop_computer: Downloading build artifacts"
buildkite-agent artifact download "dist.tar.zst" .
buildkite-agent artifact download "web.tar.zst" .
echo "--- :go::node: Extracting build artifacts" echo "--- :go::node: Extracting build artifacts"
buildkite-agent artifact download "dist.tar.zst" . && tar xf dist.tar.zst tar xf dist.tar.zst
buildkite-agent artifact download "web.tar.zst" . && tar xf web.tar.zst tar xf web.tar.zst
fi fi
if [[ $BUILDKITE_LABEL =~ ":docker: Deploy Image" ]]; if [[ $BUILDKITE_LABEL =~ ":docker: Deploy Image" ]];