Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
bitner committed Oct 31, 2024
1 parent 6b0a987 commit 0ff9aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/civ2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: |
IMAGE=stac-utils/pgstac-base
HASH=$(git log -1 --pretty="format:%h" -- docker/pgstac)
TAG="\"$HASH\""
TAG="\"sha-$HASH\""
TOKEN=$(curl -s https://ghcr.io/token\?scope\="repository:$IMAGE:pull" | jq -r .token)
EXISTS=$(curl -s -H "Authorization: Bearer $TOKEN" https://ghcr.io/v2/$IMAGE/tags/list | jq "try(any(.tags[]; . == $TAG))")
echo "pgstac-image-exists=$EXISTS" >>$GITHUB_OUTPUT
Expand Down

0 comments on commit 0ff9aaf

Please sign in to comment.