-
Notifications
You must be signed in to change notification settings - Fork 49
/
.goreleaser.yml
85 lines (77 loc) · 2.14 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
builds:
- id: codeowners-validator
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- "386"
- amd64
- arm64
ldflags:
- -s -w -X go.szostok.io/version.version={{.Version}} -X go.szostok.io/version.buildDate={{.Date}}
# List of combinations of GOOS + GOARCH + GOARM to ignore.
# Default is empty.
ignore:
- goos: windows # due to upx error: CantPackException: can't pack new-exe
goarch: arm64
hooks:
# Install upx first, https://github.com/upx/upx/releases
post: upx -9 "{{ .Path }}"
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
dockers:
- dockerfile: Dockerfile
ids:
- codeowners-validator
image_templates:
- "ghcr.io/mszostok/codeowners-validator:stable"
- "ghcr.io/mszostok/codeowners-validator:{{ .Tag }}"
- "ghcr.io/mszostok/codeowners-validator:v{{ .Major }}.{{ .Minor }}"
- "ghcr.io/mszostok/codeowners-validator:v{{ .Major }}"
- "mszostok/codeowners-validator:latest"
- "mszostok/codeowners-validator:{{ .Tag }}"
- "mszostok/codeowners-validator:v{{ .Major }}.{{ .Minor }}"
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
use: github
filters:
exclude:
- '^docs:'
- '^test:'
dist: bin
release:
# If set to true, will not auto-publish the release.
# Default is false.
draft: true
# Repo in which the release will be created.
# Default is extracted from the origin remote URL or empty if its private hosted.
github:
owner: mszostok
name: codeowners-validator
brews:
- name: codeowners-validator
homepage: https://github.com/mszostok/codeowners-validator
description: Ensures the correctness of your CODEOWNERS file.
license: "Apache License 2.0"
tap:
owner: mszostok
name: homebrew-tap
commit_author:
name: Mateusz Szostok
email: [email protected]
test: |
system "#{bin}/codeowners-validator -v --short"