Skip to content

Commit

Permalink
feat: add docker attestation
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev authored Jul 23, 2024
1 parent d6bcdff commit cd76608
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,18 @@ jobs:
- name: Run brew test-bot --only-setup
run: docker run --rm brew brew test-bot --only-setup

- name: Generate image digest
id: digest
run: echo "digest=$(docker inspect --format='{{index .RepoDigests 0}}' brew)" >> "$GITHUB_OUTPUT"

- name: Generate build provenance
uses: actions/[email protected]
id: attest
with:
subject-name: ghcr.io/homebrew/ubuntu${{matrix.version}}
subject-digest: ${{ steps.digest.outputs.digest }}
push-to-registry: ${{ startsWith(github.ref, 'refs/tags/') }}

- name: Deploy the tagged Docker image to GitHub Packages
if: startsWith(github.ref, 'refs/tags/')
run: |
Expand Down

0 comments on commit cd76608

Please sign in to comment.