-
Notifications
You must be signed in to change notification settings - Fork 13
/
.goreleaser.yml
152 lines (131 loc) · 3.56 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=jcroql
version: 2
project_name: snyk-iac-rules
before:
# run this here to avoid "git is currently in a dirty state" error
hooks:
- go mod tidy
- go install github.com/google/go-licenses@latest
- go-licenses save . --save_path=./acknowledgements
- tar -cvf ./acknowledgements.tar.gz -C ./acknowledgements .
- rm -rf ./acknowledgements
builds:
- main: ./main.go
env:
- CGO_ENABLED=0
goos:
- windows
- linux
- darwin
goarch:
- amd64
- arm64
ldflags:
- '-s -w -X github.com/snyk/snyk-iac-rules/cmd.version={{.Version}}'
archives:
- id: default
files:
- none*
name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- if eq .Os "darwin" }}Darwin_
{{- else if eq .Os "linux" }}Linux_
{{- else if eq .Os "windows" }}Windows_
{{- else }}{{ .Os }}_{{ end }}
{{- if eq .Arch "386" }}i386
{{- else if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
format: tar.gz
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^chore:'
- '^refactor:'
- '^Merge pull request'
snapshot:
name_template: "{{ .Version }}"
release:
# If set to true, will not auto-publish the release.
draft: false
# Header template for the release body.
# Defaults to empty.
header: |
## snyk-iac-rules ({{ .Date }})
Welcome to this new release!
# Footer template for the release body.
# Defaults to empty.
footer: |
## Thanks!
Those were the changes on {{ .Tag }}!
extra_files:
- glob: ./acknowledgements.tar.gz
brews:
-
# If set to auto, the release will not be uploaded to the homebrew tap
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
# Default is false.
skip_upload: false
# GitHub repository to push the formula to
repository:
owner: snyk
name: homebrew-tap
token: "{{ .Env.SNYK_ACCESS_TOKEN }}"
directory: Formula
commit_author:
name: snyk
email: cloud-dev-ex@users.noreply.github.com
homepage: "https://snyk.io/"
license: Apache-2.0
description: "Write, debug, test, and bundle custom rules for Snyk Infrastructure as Code."
scoops:
-
# If set to auto, the release will not be uploaded to the scoop bucket
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
# Default is false.
skip_upload: false
# Repository to push the app manifest to.
repository:
owner: snyk
name: scoop-snyk
token: "{{ .Env.SNYK_ACCESS_TOKEN }}"
commit_author:
name: snyk
email: cloud-dev-ex@users.noreply.github.com
homepage: "https://snyk.io/"
license: Apache-2.0
description: "Write, debug, test, and bundle custom rules for Snyk Infrastructure as Code."
# Publishes the deb and rpm files to the GitHub releases page.
nfpms:
- bindir: /usr/bin
description: "Write, debug, test, and bundle custom rules for Snyk Infrastructure as Code."
formats:
- deb
- rpm
homepage: https://github.com/snyk/snyk-iac-rules
license: Apache-2.0
maintainer: 'Snyk'
dockers:
-
id: dockerimg
goos: linux
goarch: amd64
image_templates:
- "snyk/{{ .ProjectName }}:latest"
- "snyk/{{ .ProjectName }}:{{ .Version }}"
announce:
twitter:
enabled: false
slack:
enabled: false
reddit:
enabled: false