Skip to content

Commit

Permalink
fix attest
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberworm-uk authored Oct 8, 2024
1 parent 3c5a74e commit d463bd5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/docker-publish-arti.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ env:
REGISTRY: ghcr.io

jobs:
ghcr_publish:
publish:
permissions:
id-token: write
packages: write
contents: read
attestations: write
runs-on: ubuntu-latest
steps:
- name: checkout
Expand All @@ -30,10 +35,19 @@ jobs:

- name: Build and push arti
uses: docker/build-push-action@v6
id: push
env:
SOURCE_DATE_EPOCH: 0
with:
context: arti/
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.REGISTRY }}/${{ github.actor }}/arti:latest
tags: ${{ env.REGISTRY }}/${{ github.actor }}/arti:latest

- name: Attest
uses: actions/attest-build-provenance@v1
id: attest
with:
subject-name: ${{ env.REGISTRY }}/${{ github.actor }}/arti
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
5 changes: 5 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ env:

jobs:
publish:
permissions:
id-token: write
packages: write
contents: read
attestations: write
runs-on: ubuntu-latest
steps:
- name: checkout
Expand Down

0 comments on commit d463bd5

Please sign in to comment.