Skip to content

Commit

Permalink
Merge pull request #102 from svengo/feature/multiple-attestations
Browse files Browse the repository at this point in the history
- New Features
  - Consolidated Docker image attestation steps for improved efficiency.
  - Updated attestation to support multiple image names in a single entry.

- Bug Fixes
  - Adjusted input indentation for the subject-name to accommodate multi-line format.
  • Loading branch information
svengo authored Dec 17, 2024
2 parents b5ae4d4 + 67e583e commit 3f247a3
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,12 @@ jobs:
cache-to: type=gha,mode=max
platforms: linux/amd64
-
name: Attest DockerHub
name: Attest Docker images
uses: actions/attest-build-provenance@v2
with:
subject-name: docker.io/${{ vars.DOCKERHUB_USERNAME }}/${{ vars.IMAGE_NAME }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
-
name: Attest ghcr
uses: actions/attest-build-provenance@v2
with:
subject-name: ghcr.io/${{ github.repository_owner }}/${{ vars.IMAGE_NAME }}
subject-name: |
docker.io/${{ vars.DOCKERHUB_USERNAME }}/${{ vars.IMAGE_NAME }}
ghcr.io/${{ github.repository_owner }}/${{ vars.IMAGE_NAME }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
-
Expand Down

0 comments on commit 3f247a3

Please sign in to comment.