File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 18
18
build-image :
19
19
name : Build Custom Keycloak Image
20
20
runs-on : ubuntu-latest
21
+ permissions :
22
+ id-token : write
23
+ contents : read
24
+ attestations : write
25
+ packages : write
21
26
steps :
22
27
- uses : actions/checkout@v4
23
28
- uses : actions/setup-node@v4
@@ -42,10 +47,17 @@ jobs:
42
47
username : ${{ github.actor }}
43
48
password : ${{ secrets.GITHUB_TOKEN }}
44
49
- name : Build and Push Container Image
50
+ id : push
45
51
uses : docker/build-push-action@v6
46
52
with :
47
53
context : keycloak
48
54
platforms : linux/amd64,linux/arm64/v8
49
55
push : true
50
56
tags : |
51
- ghcr.io/cryptomator/keycloak:${{ github.event.inputs.tag }}
57
+ ghcr.io/cryptomator/keycloak:${{ github.event.inputs.tag }}
58
+ - name : Generate artifact attestation
59
+ uses : actions/attest-build-provenance@v2
60
+ with :
61
+ subject-name : ghcr.io/cryptomator/keycloak
62
+ subject-digest : ${{ steps.push.outputs.digest }}
63
+ push-to-registry : true
You can’t perform that action at this time.
0 commit comments