Skip to content

Commit 515b193

Browse files
authored
feat: add release workflow with Docker github-builder (#3)
Tag-triggered pipeline that builds multi-arch images (amd64/arm64), pushes to GHCR with semver tags, generates SBOM attestation, and signs via GitHub OIDC.
1 parent 6ca9b15 commit 515b193

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/release.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
uses: docker/github-builder/.github/workflows/build.yml@073833262a23a17675c95c4541ab063b7646756b # v1
11+
permissions:
12+
contents: read
13+
id-token: write
14+
packages: write
15+
with:
16+
platforms: linux/amd64,linux/arm64
17+
cache: true
18+
cache-mode: max
19+
output: image
20+
push: true
21+
sbom: true
22+
set-meta-annotations: true
23+
set-meta-labels: true
24+
meta-images: ghcr.io/${{ github.repository }}
25+
meta-tags: |
26+
type=semver,pattern={{version}}
27+
type=semver,pattern={{major}}.{{minor}}
28+
type=semver,pattern={{major}}
29+
secrets:
30+
registry-auths: |
31+
- registry: ghcr.io
32+
username: ${{ github.actor }}
33+
password: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)