forked from moonswitch/weave-gitops-enterprise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
86 lines (85 loc) · 1.83 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
project_name: gitops-ee
release:
disable: true
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
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:
- "{{ .Env.LDFLAGS }}"
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
brews:
- name: gitops-ee
tap:
owner: weaveworks
name: homebrew-tap
commit_author:
name: weave-gitops-bot
email: [email protected]
folder: Formula
url_template: "https://artifacts.wge.dev.weave.works/releases/bin/{{ .Version }}/{{ .ArtifactName }}"
homepage: "https://docs.gitops.weave.works/docs/getting-started"
description: "GitOps support for Kubernetes"
install: |
bin.install "gitops"
# Install bash completion
output = Utils.popen_read("#{bin}/gitops completion bash")
(bash_completion/"gitops").write output
# Install zsh completion
output = Utils.popen_read("#{bin}/gitops completion zsh")
(zsh_completion/"_gitops").write output
blobs:
- provider: s3
bucket: weave-gitops-enterprise
folder: "releases/bin/{{.Version}}"
region: "us-east-1"