File tree 1 file changed +15
-6
lines changed 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 7
7
name : Buid and push Docker image to GitHub Container registry
8
8
runs-on : ubuntu-latest
9
9
permissions :
10
- packages : write
11
10
contents : read
11
+ packages : write
12
+ attestations : write
12
13
steps :
13
14
- name : Checkout the repository
14
- uses : actions/checkout@v2
15
-
16
- - name : Build Meta
17
- run : echo "::set-output name=dtag::ghcr.io/barelyhuman/goblin:nightly"
18
- id : meta
15
+ uses : actions/checkout@v4
19
16
20
17
- name : Set up QEMU
21
18
uses : docker/setup-qemu-action@v3
28
25
registry : ghcr.io
29
26
username : ${{ github.repository_owner }}
30
27
password : ${{ secrets.GITHUB_TOKEN }}
28
+
29
+ - name : Build Meta
30
+ run : echo "::set-output name=dtag::ghcr.io/barelyhuman/goblin:nightly"
31
+ id : meta
31
32
32
33
- name : Build and push
33
34
uses : docker/build-push-action@v5
35
+ id : push
34
36
env :
35
37
REGISTRY : ghcr.io
36
38
OWNER : ${{ github.repository_owner }}
41
43
platforms : linux/amd64,linux/arm64
42
44
push : true
43
45
tags : ${{ steps.meta.outputs.dtag }}
46
+
47
+ - name : Generate artifact attestation
48
+ uses : actions/attest-build-provenance@v1
49
+ with :
50
+ subject-name : ghcr.io/barelyhuman/goblin:nightly
51
+ subject-digest : ${{ steps.push.outputs.digest }}
52
+ push-to-registry : true
You can’t perform that action at this time.
0 commit comments