diff --git a/.github/scripts/docker-tag-delete.sh b/.github/scripts/docker-tag-delete.sh index 7ec78a8d..e199a869 100755 --- a/.github/scripts/docker-tag-delete.sh +++ b/.github/scripts/docker-tag-delete.sh @@ -18,7 +18,7 @@ if [[ "${1}" == "" ]]; then exit 1 else # Split image:tag - IFS=$':' read IMAGE TAG <<< ${1}; + IFS=$':' read IMAGE TAG <<< "${1}"; # Remove registry prefix from image if present IMAGE=${IMAGE#"docker.io/"} fi @@ -42,4 +42,4 @@ output=$(curl -sI "https://hub.docker.com/v2/repositories/${IMAGE}/tags/${TAG}/" ) # Return and error if HTTP response code is not 204 -echo "${output}" | grep "HTTP/1.1 204 NO CONTENT" +echo "${output}" | grep -i "HTTP/1.1 204 No Content" diff --git a/.github/workflows/default.yaml b/.github/workflows/default.yaml index 44a3ef49..345567a1 100644 --- a/.github/workflows/default.yaml +++ b/.github/workflows/default.yaml @@ -282,5 +282,5 @@ jobs: docker manifest push ${tag} done # Clean up intermediate arch-specific image tags (DockerHub only) - .github/scripts/docker-tag-delete.sh ${{ env.BUILD_IMAGE_TAG }}-${{ env.GIT_SHA7 }}-amd64 - .github/scripts/docker-tag-delete.sh ${{ env.BUILD_IMAGE_TAG }}-${{ env.GIT_SHA7 }}-arm64 + .github/scripts/docker-tag-delete.sh "${{ env.BUILD_IMAGE_TAG }}-${{ env.GIT_SHA7 }}-amd64" + .github/scripts/docker-tag-delete.sh "${{ env.BUILD_IMAGE_TAG }}-${{ env.GIT_SHA7 }}-arm64"