Skip to content

Commit fd54a24

Browse files
committed
Add other fields
1 parent 731cd37 commit fd54a24

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/docker.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ env:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
14+
1415
permissions:
1516
contents: read
1617
packages: write
18+
attestations: write
19+
id-token: write
1720

1821
steps:
1922
- name: Checkout code
@@ -36,6 +39,14 @@ jobs:
3639
uses: docker/[email protected]
3740
with:
3841
context: .
42+
file: ./dockerfile
3943
push: true
4044
tags: ${{ steps.meta.outputs.tags }}
41-
labels: ${{ steps.meta.outputs.labels }}
45+
labels: ${{ steps.meta.outputs.labels }}
46+
47+
- name: Generate artifact attestation
48+
uses: actions/attest-build-provenance@v2
49+
with:
50+
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
51+
subject-digest: ${{ steps.push.outputs.digest }}
52+
push-to-registry: true

0 commit comments

Comments
 (0)