Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.

Commit 55a7bd7

Browse files
committed
Add GitHub Actions workflow
1 parent 4c6fc07 commit 55a7bd7

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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

0 commit comments

Comments
 (0)