forked from Legit-Labs/legitify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
60 lines (54 loc) · 1.61 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
before:
hooks:
- go mod verify
- go mod tidy
builds:
- id: legitify
binary: '{{ .ProjectName }}'
main: ./main.go
env:
- CGO_ENABLED=0
ldflags:
- '-s'
- '-w'
- '-X=github.com/Legit-Labs/legitify/internal/version.Name={{ .ProjectName }}'
- '-X=github.com/Legit-Labs/legitify/internal/version.Version={{ .Version }}'
- '-X=github.com/Legit-Labs/legitify/internal/version.Commit={{ .Commit }}'
- '-extldflags=-static'
targets:
- 'darwin_amd64'
- 'darwin_arm64'
- 'linux_amd64'
- 'linux_arm64'
- 'windows_amd64'
- 'windows_arm64'
dockers:
-
image_templates:
- 'ghcr.io/legit-labs/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}.{{ .Patch }}'
- 'ghcr.io/legit-labs/{{ .ProjectName }}:latest'
build_flag_templates:
- '--pull'
- '--label=org.opencontainers.image.created={{ .CommitTimestamp }}'
- '--label=org.opencontainers.image.description=Strengthen the security posture of your GitHub organization!'
- '--label=org.opencontainers.image.revision={{ .FullCommit }}'
- '--label=org.opencontainers.image.source=https://github.com/legit-labs/legitify'
- '--label=org.opencontainers.image.title={{ .ProjectName }}'
- '--label=org.opencontainers.image.version={{ .Version }}'
archives:
- builds:
- legitify
format_overrides:
- goos: windows
format: zip
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA512SUMS'
algorithm: 'sha512'
release:
draft: false
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'