Skip to content

Commit

Permalink
🐳 fix build attestation (#267)
Browse files Browse the repository at this point in the history
This PR fixes a small error in the build attestation job where the name
was left empty.
  • Loading branch information
burgholzer authored Jun 3, 2024
1 parent 2901111 commit 54c96ca
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
branches:
- "main"

env:
REGISTRY: docker.io
IMAGE_NAME: burgholzer/mqt-ddvis

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
Expand All @@ -37,7 +41,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: burgholzer/mqt-ddvis
images: ${{ env.IMAGE_NAME }}

- name: Build and push Docker image
id: push
Expand All @@ -49,8 +53,9 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}

- name: Generate artifact attestation
if: ${{ github.event_name != 'pull_request' }}
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: ${{ github.event_name != 'pull_request' }}
push-to-registry: true

0 comments on commit 54c96ca

Please sign in to comment.