mirror of
https://github.com/luxfi/broker.git
synced 2026-09-24 00:25:18 +00:00
goreleaser builds the six-platform binary matrix (linux/darwin/windows ×
amd64/arm64) with SBOMs and checksums on `v*` tag push. docker.yml is
pinned to the lux-build-linux-{amd64,arm64} ARC runners (native, no
QEMU) and delegates to the canonical hanzoai/.github reusable workflow.
release.yml triggers on `v*` tags and runs on the lux-build self-hosted
scale-set.
64 lines
1.2 KiB
YAML
64 lines
1.2 KiB
YAML
# goreleaser config for brokerd.
|
|
#
|
|
# Triggered by the release workflow on `v*` tag push. Builds native
|
|
# binaries for all six policy platforms, produces tarballs + zips +
|
|
# checksums + SBOM, and attaches them to the GitHub Release.
|
|
#
|
|
# Container images are built separately by `.github/workflows/docker.yml`
|
|
# (native multi-arch via hanzoai/.github reusable workflow).
|
|
|
|
version: 2
|
|
|
|
project_name: brokerd
|
|
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
|
|
builds:
|
|
- id: brokerd
|
|
main: ./cmd/brokerd
|
|
binary: brokerd
|
|
env:
|
|
- CGO_ENABLED=0
|
|
flags:
|
|
- -trimpath
|
|
ldflags:
|
|
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
|
|
archives:
|
|
- id: brokerd
|
|
builds: [brokerd]
|
|
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
|
format_overrides:
|
|
- goos: windows
|
|
format: zip
|
|
files:
|
|
- LICENSE*
|
|
- README*
|
|
|
|
checksum:
|
|
name_template: checksums.txt
|
|
|
|
sboms:
|
|
- artifacts: archive
|
|
|
|
snapshot:
|
|
version_template: "{{ incpatch .Version }}-next"
|
|
|
|
changelog:
|
|
use: github
|
|
sort: asc
|
|
|
|
release:
|
|
draft: false
|
|
prerelease: auto
|
|
mode: append
|