Skip to content

Commit 771d2cf

Browse files
committed
fix: Optimize multi-arch attestations in single build
- Use docker/build-push-action@v6 native attestation support - Set provenance=mode=max for better multi-arch attestation handling - Remove separate attestation step to avoid conflicts - This should resolve ARM64 attestation issues while keeping simple workflow
1 parent 140c67d commit 771d2cf

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.github/workflows/docker-build.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ jobs:
140140
labels: ${{ steps.meta.outputs.labels }}
141141
cache-from: type=gha
142142
cache-to: type=gha,mode=max
143-
# Enable attestations for supply chain security
144-
provenance: true
143+
# Enable attestations for supply chain security (v6 handles multi-arch better)
144+
provenance: mode=max
145145
sbom: true
146146

147147
- name: Test Docker image functionality
@@ -171,12 +171,3 @@ jobs:
171171
172172
echo "✅ Image tests passed"
173173
174-
# Generate GitHub attestations for supply chain security
175-
- name: Generate artifact attestation
176-
if: github.event_name != 'pull_request'
177-
uses: actions/attest-build-provenance@v1
178-
with:
179-
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
180-
subject-digest: ${{ steps.build.outputs.digest }}
181-
push-to-registry: true
182-
continue-on-error: true # Don't fail build if attestation fails

0 commit comments

Comments
 (0)