mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
Only do a HEAD request for the image to avoid downloading it
This commit is contained in:
parent
a780f4bd3c
commit
3734283718
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ CHROME_DEB="google-chrome-stable_${LATEST_VERSION}_amd64.deb"
|
|||
CHROME_URL="https://s3.amazonaws.com/gitlab-google-chrome-stable/${CHROME_DEB}"
|
||||
|
||||
echo "Checking if cache has $CHROME_DEB"
|
||||
FILE_CHECK=$(curl -sL -w "%{http_code}\\n" "$CHROME_URL" -o /dev/null)
|
||||
FILE_CHECK=$(curl -sL -I -w "%{http_code}\\n" "$CHROME_URL" -o /dev/null)
|
||||
|
||||
if [ "$FILE_CHECK" -eq "200" ]; then
|
||||
echo "Latest version $LATEST_VERSION is already cached!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue