-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
115 lines (110 loc) · 3.14 KB
/
.goreleaser.yaml
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
---
version: 2
before:
hooks:
- go mod tidy
- go generate ./...
builds:
# Used by homebrew
- env:
- CGO_ENABLED=0
id: "aws-sso"
binary: "aws-sso"
goos:
- linux
- darwin
- windows
goarch:
- "amd64"
- "arm"
- "arm64"
- "386"
ldflags:
- -s -w -X 'github.com/louislef299/aws-sso/pkg/v1/version.Version={{.Version}}'
- -X 'github.com/louislef299/aws-sso/pkg/v1/version.BuildOS={{.Runtime.Goos}}'
- -X 'github.com/louislef299/aws-sso/pkg/v1/version.BuildArch={{.Runtime.Goarch}}'
- -X 'github.com/louislef299/aws-sso/pkg/v1/version.GoVersion={{.Env.GOVERSION}}'
- -X 'github.com/louislef299/aws-sso/pkg/v1/version.BuildTime={{.Date}}'
- -X 'github.com/louislef299/aws-sso/pkg/v1/version.CommitHash={{.ShortCommit}}'
# Used by krew
- env:
- CGO_ENABLED=0
id: "kubectl-aws_sso"
binary: "kubectl-aws_sso"
goos:
- linux
- darwin
- windows
goarch:
- "amd64"
- "arm"
- "arm64"
- "386"
flags:
- -tags=kube
ldflags:
- -s -w -X 'github.com/louislef299/aws-sso/pkg/v1/version.Version={{.Version}}'
- -X 'github.com/louislef299/aws-sso/pkg/v1/version.BuildOS={{.Runtime.Goos}}'
- -X 'github.com/louislef299/aws-sso/pkg/v1/version.BuildArch={{.Runtime.Goarch}}'
- -X 'github.com/louislef299/aws-sso/pkg/v1/version.GoVersion={{.Env.GOVERSION}}'
- -X 'github.com/louislef299/aws-sso/pkg/v1/version.BuildTime={{.Date}}'
- -X 'github.com/louislef299/aws-sso/pkg/v1/version.CommitHash={{.ShortCommit}}'
archives:
- builds:
- aws-sso
name_template: >-
{{ .ProjectName }}_{{ .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
id: aws-sso
- builds:
- kubectl-aws_sso
name_template: >-
kubectl-{{ .ProjectName }}_{{ .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
id: kubectl-aws_sso
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incpatch .Version }}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
- name: aws-sso
commit_author:
name: Louis Lefebvre
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://github.com/louislef299/aws-sso"
ids:
- aws-sso
repository:
owner: louislef299
name: homebrew-aws-sso
branch: main
token: "{{ .Env.GITHUB_TOKEN }}"
krews:
- name: aws-sso
ids:
- kubectl-aws_sso
commit_author:
name: Louis Lefebvre
email: [email protected]
commit_msg_template: "chore: Krew plugin update for {{ .ProjectName }} version {{ .Tag }}"
description: "A simplified AWS SSO manager to make authenticating to EKS and ECR easier."
short_description: "A simplified AWS SSO manager."
repository:
owner: louislef299
name: aws-sso
branch: release-krew
pull_request:
enabled: true