Skip to content

Commit

Permalink
Fix attestation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemclaren authored Jul 3, 2024
1 parent 092a4f1 commit 4cd2d48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- main
paths-ignore:
- '**.md'
- '.github/**'
- '.gitignore'
workflow_dispatch:

Expand All @@ -28,7 +27,7 @@ jobs:
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand All @@ -40,11 +39,12 @@ jobs:
install-cuda: false
cog-version: v0.9.12
- run: |
cog push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}:latest --use-cuda-base-image false
digest=$(cog push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest --use-cuda-base-image false | grep 'digest: sha256' | awk '{ print $3 }')
echo "digest=$digest" >> $GITHUB_ENV
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
subject-digest: ${{ env.digest }}
push-to-registry: true

0 comments on commit 4cd2d48

Please sign in to comment.