Skip to content

Commit 4b798dc

Browse files
committed
updated action
1 parent f034180 commit 4b798dc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/docker-image.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,15 @@ jobs:
2323
username: ${{ github.actor }}
2424
password: ${{ secrets.GITHUB_TOKEN }}
2525
- name: Push the Docker image to GitHub Packages
26-
uses: docker/push-action@v2
26+
uses: docker/build-push-action@v2
2727
with:
2828
context: .
2929
push: true
3030
tags: ${{ github.repository }}:latest, ${{ github.repository }}:finance-${{ github.sha }}
31+
32+
- name: Generate artifact attestation
33+
uses: actions/attest-build-provenance@v2
34+
with:
35+
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
36+
subject-digest: ${{ steps.push.outputs.digest }}
37+
push-to-registry: true

0 commit comments

Comments
 (0)