-
Notifications
You must be signed in to change notification settings - Fork 20
/
.goreleaser.yml
54 lines (49 loc) · 1.02 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
env:
- GO_VERSION=1.16
before:
hooks:
- go mod download
builds:
- main: ./cmd/mnd/main.go
binary: mnd
goos:
- windows
- darwin
- linux
goarch:
- amd64
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.buildTime={{.Date}}`.
archives:
- format: tar.gz
format_overrides:
- goos: windows
format: zip
brews:
- name: mnd
tap:
owner: tommy-muehle
name: homebrew-tap
folder: Formula
homepage: https://github.com/tommy-muehle/go-mnd
description: Magic number detector for Go
test: |
system "#{bin}/mnd --version"
install: |
bin.install "mnd"
dockers:
-
goos: linux
goarch: amd64
image_templates:
- "tommymuehle/go-mnd:latest"
- "tommymuehle/go-mnd:{{ .Tag }}"
build_flag_templates:
- "--build-arg=GO_VERSION={{.Env.GO_VERSION}}"
extra_files:
- checks
- cmd
- config
- analyzer.go
- entrypoint.sh
- go.mod
- go.sum