Skip to content

Commit 1015a55

Browse files
committed
chore: compare before and after tags in pr-open
1 parent fc0560d commit 1015a55

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/pr-open.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ jobs:
3232
target: latest
3333
tags: ${{ github.event.number }}
3434

35+
- run: |
36+
# Verify tagging
37+
INSPECT="docker manifest inspect ghcr.io/${{ inputs.organization }}/${{ inputs.repository }}/${{ matrix.package }}"
38+
SOURCE=$(${INSPECT}:${{ inputs.tag_promote }} | jq -r '.manifests[] | select(.platform.architecture=="amd64") | .digest')
39+
TARGET=$(${INSPECT}:${{ inputs.target }} | jq -r '.manifests[] | select(.platform.architecture=="amd64") | .digest')
40+
if [ "${SOURCE}" != "${TARGET}" ]; then
41+
echo "ERROR: Tagging failed!"
42+
exit 1
43+
fi
44+
3545
deploys:
3646
name: Deploys
3747
needs: [builds, validate]

0 commit comments

Comments
 (0)