-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yml
92 lines (86 loc) · 2.29 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
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
# Custom ldflags templates.
# Default is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser`.
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}} -X main.projectName={{.ProjectName}}
goos:
- darwin
- linux
- windows
goarch:
- amd64
- 386
- arm
- arm64
ignore:
- goos: darwin
goarch: 386
- goos: windows
goarch: 386
# Path to main.go file or main package.
# Default is `.`.
main: ./cmd/main.go
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: desc
filters:
exclude:
- '^doc[s]?:'
- '^\[doc[s]?\]'
- '^wip:'
- '^WIP:'
dockers:
-
goos: linux
goarch: 386
image_templates:
- "jimschubert/{{ .ProjectName }}:latest"
- "jimschubert/{{ .ProjectName }}:{{ .Tag }}"
- "jimschubert/{{ .ProjectName }}:v{{ .Major }}"
dockerfile: release.Dockerfile
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
brews:
- tap:
owner: jimschubert
name: homebrew-tap
folder: Formula
homepage: https://github.com/jimschubert/changelog
description: A changelog generator which uses GitHub's API for the details
license: Apache 2.0
test: |
system "#{bin}/changelog -v"
dependencies:
- name: go
install: |-
bin.install "changelog"