File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 4444 set -e
4545 IMAGE=stac-utils/pgstac-base
4646 HASH=$(git log -1 --pretty="format:%h" -- docker/pgstac)
47- TAG="\"sha- $HASH\""
47+ TAG="\"$HASH\""
4848 TOKEN=$(curl -s https://ghcr.io/token\?scope\="repository:$IMAGE:pull" | jq -r .token)
4949 EXISTS=$(curl -s -H "Authorization: Bearer $TOKEN" https://ghcr.io/v2/$IMAGE/tags/list | jq "try(any(.tags[]; . == $TAG))")
5050 echo "pgstac-image-exists=$EXISTS" >>$GITHUB_OUTPUT
5757 runs-on : ubuntu-latest
5858 steps :
5959 - uses : actions/checkout@v4
60- - name : Docker Meta
61- id : meta
62- uses : docker/metadata-action@v5
63- with :
64- images : |
65- ghcr.io/stac-utils/pgstac-base
66- tags : |
67- type=sha
6860 - uses : docker/setup-buildx-action@v3
6961 - name : Log in to the Container registry
7062 uses : docker/login-action@v3
7971 context : .
8072 target : pgstacbase
8173 file : docker/pgstac/Dockerfile
82- tags : ${{ steps.meta .outputs.tags }}
74+ tags : ${{ needs.check-pgstac-base .outputs.pgstac-image-hash }}
8375 push : true
8476 cache-from : type=gha
8577 cache-to : type=gha, mode=max
You can’t perform that action at this time.
0 commit comments