This repository was archived by the owner on Jun 24, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ jobs:
179
179
- uses : docker/setup-buildx-action@v3
180
180
- name : Build and push container image to GHCR
181
181
uses : docker/build-push-action@v6
182
- id : push
182
+ id : ghcr- push
183
183
with :
184
184
context : .
185
185
push : true
@@ -191,7 +191,7 @@ jobs:
191
191
uses : actions/attest-build-provenance@v1
192
192
with :
193
193
subject-name : ${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME}}
194
- subject-digest : ${{ steps.push.outputs.digest }}
194
+ subject-digest : ${{ steps.ghcr- push.outputs.digest }}
195
195
push-to-registry : true
196
196
- name : Log in to the GHCR container registry
197
197
uses : docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
@@ -201,11 +201,17 @@ jobs:
201
201
password : ${{ secrets.DOCKERHUB_TOKEN }}
202
202
- name : Build and push image to DockerHub
203
203
uses : docker/build-push-action@v6
204
- id : push
204
+ id : dh- push
205
205
with :
206
206
context : .
207
207
push : true
208
208
tags : ${{ steps.dh-meta.outputs.tags }}
209
209
labels : ${{ steps.dh-meta.outputs.labels }}
210
210
cache-from : type=gha
211
211
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
You can’t perform that action at this time.
0 commit comments