-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yaml
63 lines (56 loc) · 1.68 KB
/
.goreleaser.yaml
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
before:
hooks:
- go mod download
archives:
- id: zip
format: zip
name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
wrap_in_directory: true
builds:
- id: default
goos:
- darwin
- linux
ignore:
- goos: darwin
goarch: 386
- goos: linux
goarch: 386
ldflags:
- -X github.com/camerondurham/ch/version.PkgVersion={{ .Version }}
- -X github.com/camerondurham/ch/version.GitRevision={{ .ShortCommit }}
- id: windows
goos:
- windows
ignore:
- goos: windows
goarch: 386
ldflags:
- -X github.com/camerondurham/ch/version.PkgVersion={{ .Version }}
- -X github.com/camerondurham/ch/version.GitRevision={{ .ShortCommit }}
release:
prerelease: auto
brews:
-
name: ch
# NOTE: make sure the url_template, the token and given repo (github or gitlab) owner and name are from the
# same kind. We will probably unify this in the next major version like it is done with scoop.
tap:
owner: camerondurham
name: homebrew-tap
branch: main
token: "{{ .Env.TAP_GITHUB_TOKEN }}"
# url_template: "http://github.com/camerondurham/ch/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: goreleaserbot
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
folder: Formula
homepage: "https://github.com/camerondurham/ch"
description: "Docker config and shell manager for using (or misusing) containers as dev environments"
license: "Apache-2.0"
skip_upload: auto
test: |
system "#{bin}/ch --version"
install: |
bin.install "ch"