This repository was archived by the owner on Mar 13, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+
7+ jobs :
8+ build-and-push-image :
9+ name : Build and push image
10+ runs-on : ubuntu-24.04
11+ permissions :
12+ contents : read
13+ packages : write
14+ attestations : write
15+ id-token : write
16+ steps :
17+ -
18+ name : Checkout
19+ uses : actions/checkout@v6
20+ - name : Login to GitHub Container Registry
21+ uses : docker/login-action@v3
22+ with :
23+ registry : ghcr.io
24+ username : ${{ github.actor }}
25+ password : ${{ secrets.GITHUB_TOKEN }}
26+ - name : Get Docker metadata
27+ id : meta
28+ uses : docker/metadata-action@v5
29+ with :
30+ images : ghcr.io/${{ github.repository }}
31+ tags : type=sha,format=long
32+ - name : Set up QEMU
33+ uses : docker/setup-qemu-action@v3
34+ - name : Set up Docker Buildx
35+ uses : docker/setup-buildx-action@v3
36+ - name : Build and push Docker image
37+ id : push
38+ uses : docker/build-push-action@v6
39+ with :
40+ context : .
41+ platforms : linux/amd64,linux/arm64
42+ push : true
43+ tags : ${{ steps.meta.outputs.tags }}
44+ labels : ${{ steps.meta.outputs.labels }}
45+ - name : Generate artifact attestation
46+ uses : actions/attest-build-provenance@v3
47+ with :
48+ subject-name : ghcr.io/${{ github.repository }}
49+ subject-digest : ${{ steps.push.outputs.digest }}
50+ push-to-registry : true
You can’t perform that action at this time.
0 commit comments