forked from weaveworks/weave-gitops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
62 lines (62 loc) · 1.34 KB
/
.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
project_name: gitops
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
release:
prerelease: auto
archives:
- format: tar.gz
replacements:
amd64: x86_64
name_template: "gitops-{{.Os}}-{{.Arch}}"
builds:
- <<: &build_defaults
binary: "gitops"
main: ./cmd/gitops
ldflags:
- -X github.com/weaveworks/weave-gitops/cmd/gitops/version.Version={{.Version}}
- -X github.com/weaveworks/weave-gitops/cmd/gitops/version.BuildTime={{.Date}}
- -X github.com/weaveworks/weave-gitops/cmd/gitops/version.Branch={{ .Env.BRANCH}}
- -X github.com/weaveworks/weave-gitops/cmd/gitops/version.GitCommit={{.Commit}}
- -X github.com/weaveworks/weave-gitops/pkg/version.FluxVersion={{ .Env.FLUX_VERSION }}
env:
- CGO_ENABLED=0
id: linux-amd64
goos:
- linux
goarch:
- amd64
goarm:
- 7
- <<: *build_defaults
id: linux-arm64
goos:
- linux
goarch:
- arm64
goarm:
- 7
- <<: *build_defaults
id: linux-arm
goos:
- linux
goarch:
- arm
goarm:
- 7
- <<: *build_defaults
id: darwin-amd64
goos:
- darwin
goarch:
- amd64
- <<: *build_defaults
id: darwin-arm64
goos:
- darwin
goarch:
- arm64