This repository has been archived by the owner on Mar 15, 2024. It is now read-only.
forked from Legit-Labs/legitify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
65 lines (57 loc) · 1.87 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
project_name: legitify
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'
hooks:
post: sh -c "if [ '{{ .Ext }}' = '.exe' ] ; then osslsigncode sign -certs /tmp/legit_signature.crt -key /tmp/legit_signature.key -in {{ .Path }} -out {{ .Path }}_signed ; rm {{ .Path }} ; mv {{ .Path }}_signed {{ .Path }} ; fi"
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 }}_SHA256SUMS'
algorithm: 'sha256'
release:
draft: false
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'