Skip to content

Commit

Permalink
Fix reference to push output to enable attestation
Browse files Browse the repository at this point in the history
  • Loading branch information
bdhoine committed Dec 11, 2024
1 parent f051844 commit 3b7c9fc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
with:
images: ${{ env.registry }}/${{ github.repository }}
- name: Build and push docker image
id: build-push-image
id: push
uses: docker/build-push-action@v3
with:
context: .
Expand All @@ -66,13 +66,13 @@ jobs:
build-args: |
RUNMODE=${{ matrix.runmode }}
PORT=${{ matrix.runmode == 'author' && '4502' || '4503' }}
# - name: Generate artifact attestation
# if: github.ref == 'refs/heads/main'
# uses: actions/attest-build-provenance@v1
# with:
# subject-name: ${{ env.registry }}/${{ github.repository }}
# subject-digest: ${{ steps.push.outputs.digest }}
# push-to-registry: true
- name: Generate artifact attestation
if: github.ref == 'refs/heads/main'
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.registry }}/${{ github.repository }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

manifest:
name: Create manifest
Expand Down

0 comments on commit 3b7c9fc

Please sign in to comment.