mirror of
https://github.com/Dvorinka/Dash.git
synced 2026-10-28 15:51:27 +00:00
One archive can't span builds with different target sets (dash ships 6, dash-agent 3) — split into two archives keyed by build id. Also: `builds` is deprecated in goreleaser v2, renamed to `ids`. Snapshot validated locally: 9 archives, checksums, embedded UI, migrations on boot. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
62 lines
1.4 KiB
YAML
62 lines
1.4 KiB
YAML
version: 2
|
|
|
|
project_name: dash
|
|
|
|
before:
|
|
hooks:
|
|
# The embedded UI must be built and copied into internal/web/dist before
|
|
# any Go build. The release workflow does this; fail loudly here if the
|
|
# stub is still in place.
|
|
- sh -c 'test -d apps/backend/internal/web/dist/assets'
|
|
|
|
builds:
|
|
- id: dash
|
|
dir: apps/backend
|
|
binary: dash
|
|
main: ./cmd/dash
|
|
env: [CGO_ENABLED=0]
|
|
goos: [linux, darwin, windows]
|
|
goarch: [amd64, arm64]
|
|
ldflags: ["-s", "-w", "-X main.version={{.Version}}"]
|
|
|
|
- id: dash-agent
|
|
dir: apps/backend
|
|
binary: dash-agent
|
|
main: ./cmd/dash-agent
|
|
env: [CGO_ENABLED=0]
|
|
goos: [linux]
|
|
goarch: [amd64, arm64, arm]
|
|
goarm: ["7"]
|
|
ldflags: ["-s", "-w", "-X main.version={{.Version}}"]
|
|
|
|
archives:
|
|
- id: dash
|
|
ids: [dash]
|
|
formats: [tar.gz]
|
|
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}"
|
|
format_overrides:
|
|
- goos: windows
|
|
formats: [zip]
|
|
files: [README.md, LICENSE]
|
|
- id: dash-agent
|
|
ids: [dash-agent]
|
|
formats: [tar.gz]
|
|
name_template: "{{ .ProjectName }}-agent_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}"
|
|
files: [README.md, LICENSE]
|
|
|
|
checksum:
|
|
name_template: "checksums.txt"
|
|
|
|
changelog:
|
|
use: github
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- "^docs:"
|
|
- "^chore:"
|
|
- "^test:"
|
|
|
|
release:
|
|
footer: |
|
|
Docker: `docker pull ghcr.io/dvorinka/dash:{{ .Tag }}`
|