Skip to content

Commit

Permalink
Attest atrifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamgilbert committed Nov 6, 2024
1 parent 94bb77b commit 9c66b93
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 5 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/build-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,16 @@ jobs:
password: ${{secrets.GITHUB_TOKEN}}

- name: Build and Push Docker image
id: push
uses: docker/[email protected]
with:
context: .
push: true
tags: ghcr.io/salopensource/sal:latest
tags: ghcr.io/salopensource/sal:latest

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
10 changes: 9 additions & 1 deletion .github/workflows/build-saml-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,17 @@ jobs:
password: ${{secrets.GITHUB_TOKEN}}

- name: Build and Push Docker image
id: push
uses: docker/[email protected]
with:
context: saml
file: saml/Dockerfile.pristine
push: true
tags: ghcr.io/salopensource/sal-saml:latest
tags: ghcr.io/salopensource/sal-saml:latest

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
10 changes: 9 additions & 1 deletion .github/workflows/build-saml-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,17 @@ jobs:
password: ${{secrets.GITHUB_TOKEN}}

- name: Build and Push Docker image
id: push
uses: docker/[email protected]
with:
context: saml
push: true
file: saml/Dockerfile.pristine
tags: ghcr.io/salopensource/sal-saml:${{ github.ref_name }}
tags: ghcr.io/salopensource/sal-saml:${{ github.ref_name }}

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
10 changes: 9 additions & 1 deletion .github/workflows/build-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,16 @@ jobs:
password: ${{secrets.GITHUB_TOKEN}}

- name: Build and Push Docker image
id: push
uses: docker/[email protected]
with:
context: .
push: true
tags: ghcr.io/salopensource/sal:${{ github.ref_name }}
tags: ghcr.io/salopensource/sal:${{ github.ref_name }}

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
2 changes: 1 addition & 1 deletion sal/version.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<plist version="1.0">
<dict>
<key>version</key>
<string>4.3.0.2293</string>
<string>4.3.0.2294</string>
</dict>
</plist>

0 comments on commit 9c66b93

Please sign in to comment.