-
Notifications
You must be signed in to change notification settings - Fork 150
/
.goreleaser.yml
70 lines (70 loc) · 1.89 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
63
64
65
66
67
68
69
70
project_name: gitops
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
release:
prerelease: auto
archives:
- format: tar.gz
name_template: >-
gitops-
{{- title .Os }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
builds:
- <<: &build_defaults
binary: "gitops"
main: ./cmd/gitops
ldflags:
- -X github.com/weaveworks/weave-gitops/cmd/gitops/version.Branch={{ .Env.BRANCH}}
- -X github.com/weaveworks/weave-gitops/cmd/gitops/version.BuildTime={{.Date}}
- -X github.com/weaveworks/weave-gitops/cmd/gitops/version.GitCommit={{.Commit}}
- -X github.com/weaveworks/weave-gitops/cmd/gitops/version.Version={{.Version}}
- -X github.com/weaveworks/weave-gitops/pkg/version.FluxVersion={{ .Env.FLUX_VERSION }}
- -X github.com/weaveworks/weave-gitops/pkg/analytics.Tier=oss
- -X github.com/weaveworks/weave-gitops/core/server.Branch={{ .Env.BRANCH}}
- -X github.com/weaveworks/weave-gitops/core/server.BuildTime={{.Date}}
- -X github.com/weaveworks/weave-gitops/core/server.GitCommit={{.Commit}}
- -X github.com/weaveworks/weave-gitops/core/server.Version={{.Version}}
- -X github.com/weaveworks/weave-gitops/cmd/gitops/beta/run.HelmChartVersion={{ .Env.CHART_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