File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,11 +42,32 @@ jobs:
4242 context : .
4343 platforms : linux/${{ matrix.arch }}
4444 load : true
45- provenance : false
46- sbom : false
4745 tags : |
4846 fedorapython/fedora-python-tox:${{ matrix.arch }}
4947 fedorapython/fedora-python-tox:${{ matrix.arch }}-f${{ env.FEDORA_VERSION }}
48+ - name : Verify single-platform image
49+ run : |
50+ # Inspect the local image
51+ image_info=$(docker image inspect fedorapython/fedora-python-tox:${{ matrix.arch }})
52+
53+ # Check that we got exactly one image (not a manifest list)
54+ image_count=$(echo "$image_info" | jq '. | length')
55+ if [ "$image_count" != "1" ]; then
56+ echo "ERROR: Expected 1 image, found $image_count"
57+ exit 1
58+ fi
59+
60+ # Get the architecture
61+ arch=$(echo "$image_info" | jq -r '.[0].Architecture')
62+ os=$(echo "$image_info" | jq -r '.[0].Os')
63+
64+ echo "✓ Verified: Image is single-platform ($os/$arch)"
65+
66+ # Verify it matches the expected architecture
67+ if [ "$arch" != "${{ matrix.arch }}" ]; then
68+ echo "ERROR: Architecture mismatch! Expected ${{ matrix.arch }}, got $arch"
69+ exit 1
70+ fi
5071 - name : Test local project
5172 env :
5273 TOXENV : ${{ matrix.toxenv }}
You can’t perform that action at this time.
0 commit comments