fix(ci): Release-Workflow auf manuellen Trigger umgestellt, SCM-Release deaktiviert
All checks were successful
Build Test Docker Image / docker-test (pull_request) Successful in 1m36s
Run Tests / test (pull_request) Successful in 4m59s

This commit is contained in:
2026-03-29 23:48:54 +02:00
parent 3ede89322f
commit cb1b420a3f
2 changed files with 27 additions and 19 deletions

View File

@@ -1,19 +1,42 @@
name: Make Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
version:
description: 'Release-Version (z.B. 0.3.3 ohne v-Prefix)'
required: true
type: string
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Validate version format
run: |
VERSION="${{ github.event.inputs.version }}"
if ! echo "$VERSION" | grep -qE '^[0-9]+\.[0-9]+\.[0-9]+$'; then
echo "::error::Ungültiges Versionsformat: '$VERSION'. Erwartet: X.Y.Z (z.B. 0.3.3)"
exit 1
fi
echo "VERSION=v${VERSION}" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create and push tag
run: |
git config user.name "Gitea Actions"
git config user.email "actions@git.techniverse.net"
if git rev-parse "$VERSION" >/dev/null 2>&1; then
echo "::error::Tag $VERSION existiert bereits!"
exit 1
fi
git tag -a "$VERSION" -m "Release $VERSION"
git push origin "$VERSION"
- name: Set up Go
uses: actions/setup-go@v5
with:
@@ -32,6 +55,4 @@ jobs:
args: release --clean
env:
GITEA_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
REGISTRY_URL: ${{ secrets.REGISTRY_URL }}
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
GORELEASER_FORCE_TOKEN: gitea

View File

@@ -26,20 +26,7 @@ checksum:
snapshot:
name_template: "{{ incpatch .Version }}-next"
release:
gitea:
owner: "{{ .Env.REGISTRY_USER }}"
name: mailcow-birthday-daemon
prerelease: auto
gitea_urls:
api: "{{ .Env.REGISTRY_URL }}/api/v1/"
download: "{{ .Env.REGISTRY_URL }}"
skip_tls_verify: false
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
disable: true
upx:
- enabled: true
goos: [linux]