Skip to content

Commit ce48316

Browse files
committed
chore: add a container diff to find unexpected changes
1 parent 322e2af commit ce48316

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/wc-build-push.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,19 @@ jobs:
160160
echo "digest=$(echo "$output" | jq -r '.manifest.digest // .manifests[0].digest')" >> "$GITHUB_OUTPUT"
161161
env:
162162
CONTAINER_VERSION: ${{ steps.metadata.outputs.version }}
163+
- run:
164+
set -Eeuo pipefail
165+
wget -O diffoci https://github.com/reproducible-containers/diffoci/releases/download/v0.1.7/diffoci-v0.1.7.linux-amd64
166+
chmod +x diffoci
167+
diffoci diff --semantic --report=container-diff.json ${FROM_CONTAINER} ${TO_CONTAINER}
168+
env:
169+
FROM_CONTAINER: ${{ env.REGISTRY }}/${{ github.repository }}-${{ inputs.flavor }}:edge
170+
TO_CONTAINER: ${{ env.REGISTRY }}/${{ github.repository }}-${{ inputs.flavor }}:${{ steps.metadata.outputs.version }}
171+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
172+
with:
173+
name: container-diff
174+
path: container-diff.json
175+
retention-days: 10
163176
- uses: ./.github/actions/container-size-diff
164177
id: container-size-diff
165178
with:

0 commit comments

Comments
 (0)