-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
79 lines (71 loc) · 1.94 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
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- go generate ./...
- gofmt -s -w .
# - golint $(go list ./... )
# - go test ./...
# - go test -coverprofile dist/main-cover.out ./...
# - go tool cover -html=dist/main-cover.out -o coverage/index.html
# - go tool cover -func=dist/main-cover.out -o coverage/coverage
builds:
- main: ./cmd/go-template-engine/main.go
binary: go-template-engine
env:
- CGO_ENABLED=0
ldflags:
- -X main.VERSION={{ .Version }}
goos:
- linux
- darwin
- windows
# - openbsd
# - freebsd
goarch:
- amd64
archives:
- id: main
name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
386: i386
amd64: x86_64
# darwin: Darwin
# linux: Linux
# windows: Windows
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-snapshot"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
scoop:
commit_author:
name: marcelocorreia
email: [email protected]
brews:
- name: go-template-engine
tap:
owner: marcelocorreia
name: homebrew-taps
#token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
url_template: "https://github.com/marcelocorreia/{{ .ProjectName }}/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: marcelocorreia
email: [email protected]
folder: Formula
homepage: "https://github.com/marcelocorreia/go-template-engine"
description: "Easy tool to apply Go Templates in BAU jobs"
license: "NotSureYet"
test: |
system "#{bin}/go-template-engine --version"
install: |
bin.install "go-template-engine"
dockers:
- image_templates:
- marcelocorreia/go-template-engine
# skip_push: true