This repository was archived by the owner on Jun 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ paths-ignore :
4+ - " **.md"
5+ - " **.ftl"
6+ branches :
7+ - master
8+
9+ env :
10+ REGISTRY : ghcr.io
11+ IMAGE_NAME : ${{ github.repository }}
12+
13+ name : Build Docker image
14+ jobs :
15+ build :
16+ runs-on : ubuntu-22.04
17+
18+ permissions :
19+ contents : read
20+ packages : write
21+ attestations : write
22+ id-token : write
23+
24+ steps :
25+ - uses : actions/checkout@v4
26+
27+ - name : Log in to the Container registry
28+ uses : docker/login-action@v3.4.0
29+ with :
30+ registry : ${{ env.REGISTRY }}
31+ username : ${{ github.actor }}
32+ password : ${{ secrets.GITHUB_TOKEN }}
33+
34+ - name : Extract metadata (tags, labels) for Docker
35+ id : meta
36+ uses : docker/metadata-action@v5.7.0
37+ with :
38+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
39+
40+ - name : Build and push Docker image
41+ id : push
42+ uses : docker/build-push-action@v6.15.0
43+ with :
44+ context : .
45+ push : true
46+ tags : ${{ steps.meta.outputs.tags }}
47+ labels : ${{ steps.meta.outputs.labels }}
48+
49+ - name : Generate artifact attestation
50+ uses : actions/attest-build-provenance@v2.2.3
51+ with :
52+ subject-name : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
53+ subject-digest : ${{ steps.push.outputs.digest }}
54+ push-to-registry : true
You can’t perform that action at this time.
0 commit comments