ci/cd: build next image for v* branches

This commit is contained in:
Elias Schneider
2026-10-28 10:37:19 +01:00
parent 75fe4ae519
commit 1ecb1582ed
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -4,10 +4,11 @@ on:
push:
branches:
- main
- "v[0-9]+"
workflow_dispatch:
concurrency:
group: build-next-image
group: build-next-image-${{ github.ref_name }}
cancel-in-progress: true
permissions:
@@ -66,7 +67,7 @@ jobs:
args: release --clean --skip=announce,validate --parallelism=4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD_NEXT: "true"
BUILD_NEXT: ${{ github.ref_name == 'main' && 'next' || format('next-{0}', github.ref_name) }}
SKIP_RELEASE: "true"
SKIP_CHANGELOG: "true"
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
+2 -2
View File
@@ -184,7 +184,7 @@ dockers_v2:
- "pocketid/pocket-id"
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/pocket-id"
tags:
- "next"
- "{{ .Env.BUILD_NEXT }}"
platforms:
- linux/amd64
- linux/arm64
@@ -212,7 +212,7 @@ dockers_v2:
- "pocketid/pocket-id"
- "ghcr.io/{{ .Env.GITHUB_REPOSITORY_OWNER }}/pocket-id"
tags:
- "next-distroless"
- "{{ .Env.BUILD_NEXT }}-distroless"
platforms:
- linux/amd64
- linux/arm64