forked from louketo/louketo-proxy
-
Notifications
You must be signed in to change notification settings - Fork 49
/
.goreleaser.yml
96 lines (92 loc) · 3.26 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
87
88
89
90
91
92
93
94
95
96
# Mark the release as not ready for production in case there is an
# indicator for this in the tag e.g. v1.0.0-rc1
# See: https://goreleaser.com/customization/release/
release:
prerelease: auto
# Prune any dependencies that are no longer needed before the build starts
before:
hooks:
- go mod tidy
builds:
- id: macos
goos: [darwin]
goarch: [amd64]
# Make sure that cgo is disabled. See: https://golang.org/cmd/cgo/
env:
- CGO_ENABLED=0
# Adds some metadata to the build like version, commit reference and the date of the build
ldflags:
- -s -w -X "github.com/gogatekeeper/gatekeeper/pkg/proxy/core.release={{.Version}}" -X "github.com/gogatekeeper/gatekeeper/pkg/proxy/core.gitsha={{ .FullCommit }}" -X "github.com/gogatekeeper/gatekeeper/pkg/proxy/core.compiled={{ .Timestamp }}"
main: ./cmd/keycloak/gatekeeper-keycloak.go
binary: gatekeeper
- id: linux
goos: [linux]
goarch:
- amd64
- arm
- arm64
goarm:
- 6
- 7
# Make sure that cgo is disabled. See: https://golang.org/cmd/cgo/
env:
- CGO_ENABLED=0
# Adds some metadata to the build like version, commit reference and the date of the build
ldflags:
- -s -w -X "github.com/gogatekeeper/gatekeeper/pkg/proxy/core.release={{.Version}}" -X "github.com/gogatekeeper/gatekeeper/pkg/proxy/core.gitsha={{ .FullCommit }}" -X "github.com/gogatekeeper/gatekeeper/pkg/proxy/core.compiled={{ .Timestamp }}"
main: ./cmd/keycloak/gatekeeper-keycloak.go
binary: gatekeeper
- id: windows
goos: [windows]
goarch: [amd64]
# Make sure that cgo is disabled. See: https://golang.org/cmd/cgo/
env:
- CGO_ENABLED=0
# Adds some metadata to the build like version, commit reference and the date of the build
ldflags:
- -s -w -X "github.com/gogatekeeper/gatekeeper/pkg/proxy/core.release={{.Version}}" -X "github.com/gogatekeeper/gatekeeper/pkg/proxy/core.gitsha={{ .FullCommit }}" -X "github.com/gogatekeeper/gatekeeper/pkg/proxy/core.compiled={{ .Timestamp }}"
main: ./cmd/keycloak/gatekeeper-keycloak.go
binary: gatekeeper
signs:
- artifacts: checksum
args:
[
"--batch",
"-u",
"{{ .Env.GPG_FINGERPRINT }}",
"--output",
"${signature}",
"--detach-sign",
"${artifact}",
]
# Generate the checksum for each file
checksum:
name_template: "{{ .ProjectName }}-checksum.txt"
algorithm: sha512
# Generate the changelog to be included into the release notes
changelog:
sort: asc
filters:
# Exclude commit messages matching the regex listed below
exclude:
- "^test:"
- Merge pull request
- Merge branch
# The artifacts to be uploaded
archives:
- id: nix
builds: [macos, linux]
# Generate the compresed files based on the following templates
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- if eq .Os "darwin" }}macOS{{- else }}{{ .Os }}{{ end }}_
{{- .Arch }}{{- .Arm }}
# All files will be in a single directory. For example: gatekeeper_0.0.1_linux_amd64
wrap_in_directory: true
format: tar.gz
- id: windows
builds: [windows]
# All files will be in a single directory. For example: gatekeeper_0.0.1_linux_amd64
wrap_in_directory: true
format: zip