Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 5b74a93

Browse files
committed
fix push action ids
1 parent ee4544c commit 5b74a93

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ jobs:
179179
- uses: docker/setup-buildx-action@v3
180180
- name: Build and push container image to GHCR
181181
uses: docker/build-push-action@v6
182-
id: push
182+
id: ghcr-push
183183
with:
184184
context: .
185185
push: true
@@ -191,7 +191,7 @@ jobs:
191191
uses: actions/attest-build-provenance@v1
192192
with:
193193
subject-name: ${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME}}
194-
subject-digest: ${{ steps.push.outputs.digest }}
194+
subject-digest: ${{ steps.ghcr-push.outputs.digest }}
195195
push-to-registry: true
196196
- name: Log in to the GHCR container registry
197197
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
@@ -201,11 +201,17 @@ jobs:
201201
password: ${{ secrets.DOCKERHUB_TOKEN }}
202202
- name: Build and push image to DockerHub
203203
uses: docker/build-push-action@v6
204-
id: push
204+
id: dh-push
205205
with:
206206
context: .
207207
push: true
208208
tags: ${{ steps.dh-meta.outputs.tags }}
209209
labels: ${{ steps.dh-meta.outputs.labels }}
210210
cache-from: type=gha
211211
cache-to: type=gha,mode=max
212+
- name: Generate and push artifact attestation to DockerHub
213+
uses: actions/attest-build-provenance@v1
214+
with:
215+
subject-name: ${{ env.DOCKERHUB_REGISTRY }}/${{ env.IMAGE_NAME}}
216+
subject-digest: ${{ steps.dh-push.outputs.digest }}
217+
push-to-registry: true

0 commit comments

Comments
 (0)