File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,12 @@ jobs:
4242 # This step only runs on scheduled or manual triggers, not on push events.
4343 - name : Get digest of the remote 'latest' image
4444 if : github.event_name != 'push'
45- uses : oleg-chudnovskiy/docker-pull-remote-image-digest@v1
4645 id : remote_digest
47- with :
48- image : ghcr.io/${{ github.repository }}
49- tag : latest
46+ run : |
47+ # Try to get the digest of the remote image, handle case when it doesn't exist
48+ DIGEST=$(docker manifest inspect ghcr.io/${{ github.repository }}:latest 2>/dev/null | jq -r '.config.digest' || echo "")
49+ echo "digest=$DIGEST" >> $GITHUB_OUTPUT
50+ echo "Remote digest: $DIGEST"
5051
5152 # Step 5: Build the image and check for changes
5253 # This step builds the image locally and tags it, making it ready for a potential push.
You can’t perform that action at this time.
0 commit comments