Skip to content

Commit

Permalink
debug image existence check with curl
Browse files Browse the repository at this point in the history
  • Loading branch information
ole-ve committed Dec 6, 2024
1 parent 805789d commit ad3c488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
- name: Check image tag exists
run: |
URL="https://ghcr.io/v2/${{ github.repository }}/manifests/${{ env.IMAGE_TAG }}"
STATUS=$(curl -s -o /dev/null -w "%{http_code}" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" $URL)
STATUS=$(curl -vv -w "%{http_code}" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" $URL)
if [ "$STATUS" -ne 200 ]; then
echo "Image with TAG ${{ env.IMAGE_TAG }} not found in GitHub Container Registry. Aborting..."
echo "Image with TAG '${{ env.IMAGE_TAG }}'' not found in GitHub Container Registry. Aborting..."
exit 1
fi
Expand Down

0 comments on commit ad3c488

Please sign in to comment.