Skip to content

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/keycloak.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818
build-image:
1919
name: Build Custom Keycloak Image
2020
runs-on: ubuntu-latest
21+
permissions:
22+
id-token: write
23+
contents: read
24+
attestations: write
25+
packages: write
2126
steps:
2227
- uses: actions/checkout@v4
2328
- uses: actions/setup-node@v4
@@ -42,10 +47,17 @@ jobs:
4247
username: ${{ github.actor }}
4348
password: ${{ secrets.GITHUB_TOKEN }}
4449
- name: Build and Push Container Image
50+
id: push
4551
uses: docker/build-push-action@v6
4652
with:
4753
context: keycloak
4854
platforms: linux/amd64,linux/arm64/v8
4955
push: true
5056
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

0 commit comments

Comments
 (0)