-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
38 lines (33 loc) · 957 Bytes
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
project_name: redcarbon
release:
prerelease: auto
name_template: "RedCarbon Agent {{.Version}}"
before:
hooks:
- go mod tidy
builds:
- <<: &build_defaults
binary: bin/redcarbon
main: ./cmd
ldflags:
- -s -w -X pkg.redcarbon.ai/internal/build.Version={{.Version}} -X pkg.redcarbon.ai/internal/build.Architecture={{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }} -X pkg.redcarbon.ai/internal/build.DefaultHost={{.Env.API_HOST}}
env:
- CGO_ENABLED=0
id: linux
goos: [linux]
goarch: [amd64, arm64]
- <<: *build_defaults
id: macos
goos: [darwin]
goarch: [amd64, arm64]
archives:
- id: nix
builds: [linux, macos]
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: true
format: tar.gz
files:
- src: assets/*
dst: .
- src: templates/*
dst: bin/templates