-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
100 lines (93 loc) · 2.35 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
93
94
95
96
97
98
99
100
before:
hooks:
- go mod download
builds:
- id: darwin-amd64
env:
- CGO_LDFLAGS=-framework CoreFoundation -framework Security
- CC=o64-clang
- CXX=o64-clang++
flags:
- -mod=readonly
ldflags:
- -s -w -X github.com/kunickiaj/beer/cmd.version={{.Version}}
goos:
- darwin
goarch:
- amd64
- id: darwin-arm64
env:
- CGO_LDFLAGS=-framework CoreFoundation -framework Security
- CC=oa64-clang
- CXX=oa64-clang++
flags:
- -mod=readonly
ldflags:
- -s -w -X github.com/kunickiaj/beer/cmd.version={{.Version}}
goos:
- darwin
goarch:
- arm64
- id: linux-amd64
env:
- CC=gcc
- CXX=g++
- CGO_FLAGS=--sysroot=/sysroot/linux/amd64
- CGO_LDFLAGS=--sysroot=/sysroot/linux/amd64
- PKG_CONFIG_SYSROOT_DIR=/sysroot/linux/amd64
- PKG_CONFIG_PATH=/sysroot/linux/amd64/usr/lib/x86_64-linux-gnu/pkgconfig:/sysroot/linux/amd64/usr/lib/pkgconfig:/sysroot/linux/amd64/usr/local/lib/pkgconfig
ldflags:
- -s -w -X github.com/kunickiaj/beer/cmd.version={{.Version}}
goos:
- linux
goarch:
- amd64
archives:
- id: dist
builds:
- darwin-amd64
- darwin-arm64
- linux-amd64
name_template: >-
{{- .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
brews:
- name: beer
# Repository to push the tap to.
repository:
owner: kunickiaj
name: homebrew-beer
url_template: 'https://github.com/kunickiaj/beer/releases/download/{{ .Tag }}/{{ .ArtifactName }}'
commit_author:
name: goreleaserbot
email: kunickiaj@gmail.com
directory: Formula
homepage: 'https://github.com/kunickiaj/beer'
description: 'CLI for managing your JIRA / Gerrit / git workflow.'
skip_upload: auto
test: |
system "#{bin}/beer --help"
install: |
bin.install "beer"
dockers:
- goos: linux
goarch: amd64
ids:
- linux-amd64
image_templates:
- 'ghcr.io/kunickiaj/beer:{{ .Tag }}'
- 'ghcr.io/kunickiaj/beer:latest'
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: '{{ .Tag }}-next'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'