mirror of
https://github.com/luxfi/treasury.git
synced 2026-10-30 15:15:00 +00:00
Adds the missing release pipeline so v* tags produce real artifacts: - .goreleaser.yml — six-platform build (linux/darwin/windows × amd64/arm64), CGO_ENABLED=0 + -trimpath, version/commit/date ldflags, syft SBOM, checksums, archives, append-mode GitHub Release. - .github/workflows/release.yml — runs goreleaser on `v*` tags via the lux-build self-hosted ARC runner (no GitHub-hosted fallback). - .github/workflows/docker.yml — multi-arch container build delegated to hanzoai/.github reusable workflow on native amd64/arm64 ARC runners (no QEMU); image published to ghcr.io/luxfi/treasury. - .github/workflows/ci.yml — go test ./... + go build ./... on PRs and pushes to main. Treasury had no .github/ before this commit; release artifacts and container images were impossible. Per org policy: native runners only, patch-bump versioning only.
64 lines
1.2 KiB
YAML
64 lines
1.2 KiB
YAML
# goreleaser config for treasuryd.
|
|
#
|
|
# 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: treasuryd
|
|
|
|
before:
|
|
hooks:
|
|
- go mod tidy
|
|
|
|
builds:
|
|
- id: treasuryd
|
|
main: ./cmd/treasuryd
|
|
binary: treasuryd
|
|
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: treasuryd
|
|
builds: [treasuryd]
|
|
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
|