-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
70 lines (65 loc) · 1.82 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
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
main: cmd/vault-plugin-secrets-vercel/main.go
binary: vault-plugin-secrets-vercel
flags:
- -v
- -trimpath
- -a
ldflags:
- -s
- -w
- -extld ld
- -extldflags
- -static
- -X github.com/thevilledev/vault-plugin-secrets-vercel/internal/version.BuildDate={{.Date}}
- -X github.com/thevilledev/vault-plugin-secrets-vercel/internal/version.Version={{.Version}}
- -X github.com/thevilledev/vault-plugin-secrets-vercel/internal/version.Commit={{.FullCommit}}
- -X github.com/thevilledev/vault-plugin-secrets-vercel/internal/version.Dirty={{.IsGitDirty}}
- -X github.com/thevilledev/vault-plugin-secrets-vercel/internal/version.CommitDate={{.CommitDate}}
- -X github.com/thevilledev/vault-plugin-secrets-vercel/internal/version.Branch={{.Branch}}
- -X github.com/thevilledev/vault-plugin-secrets-vercel/internal/version.Tag={{.Tag}}
archives:
- format: tar.gz
name_template: >-
{{ .ProjectName }}_v
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "{{ .ProjectName }}_v{{ .Version }}_SHA256SUMS"
algorithm: sha256
signs:
- artifacts: checksum
args:
- "--batch"
- "--local-user"
- "{{ .Env.GPG_FINGERPRINT }}"
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
changelog:
sort: asc
filters:
exclude:
- '^chore(docs)'
- '^chore(test)'
- '^chore(ci)'