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" ]];
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
fi

View File

@ -4,9 +4,12 @@ set +u
if [[ $BUILDKITE_LABEL =~ ":selenium:" ]];
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"
buildkite-agent artifact download "dist.tar.zst" . && tar xf dist.tar.zst
buildkite-agent artifact download "web.tar.zst" . && tar xf web.tar.zst
tar xf dist.tar.zst
tar xf web.tar.zst
fi
if [[ $BUILDKITE_LABEL =~ ":docker: Deploy Image" ]];