Commit 4a844361 authored by Björn Lindström's avatar Björn Lindström

Make fetch_website.sh fail if artifact not found

parent 304b5743
Pipeline #62150300 passed with stage
in 1 minute and 36 seconds
......@@ -24,7 +24,7 @@ main() {
mkdir "$temp_public_dir"
# Get etag of latest build.
curl --silent --location --head "$artifact_url" \
curl --silent --fail --location --head "$artifact_url" \
| grep '^etag: ' \
| tail -1 \
| sed 's/^etag: "\(.*\)"\r$/\1/' \
......@@ -37,7 +37,7 @@ main() {
fi
# Fetch and deploy website.
curl --silent --location "$artifact_url" > "$temp_zip_file"
curl --silent --fail --location "$artifact_url" > "$temp_zip_file"
unzip -q -d "$temp_dir" "$temp_zip_file"
rsync --archive --quiet --delete-delay "$temp_public_dir/" "$destination"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment