Files
lg/.goreleaser.yaml
Mans Ziesel 23ff7e1594
All checks were successful
goreleaser / goreleaser (push) Successful in 1m34s
change goreleaser workflow
2025-08-20 20:22:48 +02:00

81 lines
1.6 KiB
YAML

# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- id: lg-agent
binary: lg-agent
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
main: ./cmd/agent
- id: lg-backend
binary: lg-backend
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
main: ./cmd/backend
archives:
- formats: [tar.gz]
id: lg-agent
ids:
- lg-agent
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
lg-agent_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
- formats: [tar.gz]
id: lg-backend
ids:
- lg-backend
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
lg-backend_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
release:
gitea:
owner: mans
name: lg
ids:
- lg-agent
- lg-backend
name_template: "{{.ProjectName}}-v{{.Version}}"
gitea_urls:
api: https://git.mziesel.nl/api/v1
download: https://git.mziesel.nl