diff --git a/.github/workflows/next.yaml b/.github/workflows/next.yaml index dbabedd..7129d52 100644 --- a/.github/workflows/next.yaml +++ b/.github/workflows/next.yaml @@ -46,6 +46,7 @@ jobs: - name: Build and push Docker image uses: docker/build-push-action@v6 + id: push with: context: . file: ./Dockerfile @@ -55,3 +56,10 @@ jobs: platforms: linux/amd64, linux/arm64 cache-from: type=gha cache-to: type=gha,mode=max + - name: Attest + uses: actions/attest-build-provenance@v2 + id: attest + with: + subject-name: ghcr.io/${{ github.repository }} + subject-digest: ${{ steps.push.outputs.digest }} + push-to-registry: true diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e21be79..b7442cf 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -44,6 +44,7 @@ jobs: - name: Build and push Docker image uses: docker/build-push-action@v6 + id: push with: context: . file: ./Dockerfile @@ -53,3 +54,10 @@ jobs: platforms: linux/amd64, linux/arm64 cache-from: type=gha cache-to: type=gha,mode=max + - name: Attest + uses: actions/attest-build-provenance@v2 + id: attest + with: + subject-name: ghcr.io/${{ github.repository }} + subject-digest: ${{ steps.push.outputs.digest }} + push-to-registry: true