Files
agent-lib/.goreleaser.yaml
m3ta-chiron addca3dd74 build(release): publish releases to Gitea (code.m3ta.dev) instead of GitHub
Removes the release.github block — target and credentials come from
GITEA_URL/GITEA_TOKEN env. Pins the archive name_template to
agent-lib_<os>_<arch> so fleet download URLs stay predictable.
2026-08-24 13:17:08 +02:00

60 lines
1.2 KiB
YAML

version: 2
project_name: agent-lib
# Releases gehen an die eigene Gitea-Instanz (NICHT GitHub):
# GITEA_URL=https://code.m3ta.dev
# GITEA_TOKEN=<token mit repository-write>
# Repo/Owner werden aus dem origin-Remote abgeleitet
# (gitea@code.m3ta.dev:m3tam3re/agent-lib.git).
before:
hooks:
- go mod tidy
builds:
- id: agent-lib
env:
- CGO_ENABLED=0
goos:
- windows
- linux
- darwin
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
ldflags:
- -s -w -X github.com/m3tam3re/agent-lib/internal/version.Version={{.Version}}
binary: agent-lib
checksum:
name_template: "checksums.txt"
archives:
- id: agent-lib
formats: [tar.gz]
format_overrides:
- goos: windows
formats: [zip]
# Explizit stabil, damit Fleet-Download-URLs vorhersehbar bleiben:
# .../releases/download/<tag>/agent-lib_<os>_<arch>.<ext>
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
release:
draft: false
prerelease: auto
mode: append
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^chore:"
- Merge pull request
- Merge branch