This repository has been archived by the owner on Sep 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 108
/
.goreleaser.yml
75 lines (66 loc) · 1.71 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
project_name: regula
release:
prerelease: auto
name_template: "Regula {{.Tag}}"
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- <<: &build_defaults
binary: regula
ldflags:
- -s -w
- -X github.com/fugue/regula/v3/pkg/version.Version={{.Tag}}
- -X github.com/fugue/regula/v3/pkg/version.GitCommit={{.ShortCommit}}
id: macos
goos: [darwin]
goarch: [amd64, arm64]
- <<: *build_defaults
id: linux
goos: [linux]
goarch: [amd64, arm64]
env:
- CGO_ENABLED=0
- <<: *build_defaults
id: windows
goos: [windows]
goarch: [amd64]
archives:
- id: nix
builds: [macos, linux]
<<: &archive_defaults
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: false
files:
- LICENSE
replacements:
darwin: macOS
linux: Linux
windows: Windows
amd64: x86_64
format: tar.gz
- id: windows
builds: [windows]
<<: *archive_defaults
format: zip
dockers:
- image_templates:
- "fugue/regula:{{ if .Prerelease }}preview{{ else }}latest{{ end }}"
- "fugue/regula:{{ .Tag }}"
- "fugue/regula:v{{ .Major }}{{ if .Prerelease }}-pre{{ end }}"
- "fugue/regula:v{{ .Major }}.{{ .Minor }}{{ if .Prerelease }}-pre{{ end }}"
brews:
- skip_upload: auto
tap:
owner: fugue
name: homebrew-regula
token: "{{ .Env.BREW_TAP_GITHUB_TOKEN }}"
commit_author:
name: Fugue
email: [email protected]
folder: Formula
homepage: "https://regula.dev"
description: "Evaluate infrastructure as code for security and compliance"
checksum:
name_template: "checksums.txt"