-
Notifications
You must be signed in to change notification settings - Fork 77
/
.goreleaser.yml
102 lines (89 loc) · 2.39 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
101
102
# goreleaser.yml
# Build customization
project_name: tsuru
version: 2
builds:
- main: ./tsuru
binary: tsuru
goos:
- windows
- darwin
- linux
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
env:
- CGO_ENABLED=0
- META_PROJECT_NAME={{.ProjectName}}
- META_VERSION={{.Version}}
- META_TAG={{.Tag}}
- META_PREVIOUS_TAG={{.PreviousTag}}
- META_COMMIT={{.Commit}}
- META_DATE={{.Date}}
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }}
hooks:
post:
- ./misc/generate_metadata.sh dist/metadata.json
# Archive customization
archives:
- name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- if eq .Os "darwin" -}}
macOS
{{- else -}}
{{ .Os }}
{{- end }}_
{{- .Arch }}
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- misc/bash-completion
- misc/zsh-completion
release:
extra_files:
- glob: dist/metadata.json
- glob: dist/CHANGELOG.md
# If set to auto, will mark the release as not ready for production
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
prerelease: auto
# Mac OS Homebrew
brews:
# Reporitory to push the tap to.
- repository:
owner: tsuru
name: homebrew-tsuru
token: "{{ .Env.HOMEBREW_TSURU_REPOSITORY_AUTH_TOKEN }}"
description: "tsuru-client is a tsuru command line tool for application developers."
homepage: "https://docs.tsuru.io/stable/"
# Folder inside the repository to put the formula.
# Default is the root folder.
directory: Formula
# Custom install
install: |
bin.install "tsuru"
bash_completion.install "misc/bash-completion" => "tsuru"
zsh_completion.install "misc/zsh-completion" => "tsuru"
# If set to auto, the release will not be uploaded to the homebrew tap
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
skip_upload: auto
aurs:
- name: tsuru-bin
description: "tsuru-client is a tsuru command line tool for application developers."
homepage: "https://tsuru.io"
license: "BSD-3-Clause"
maintainers:
- "Tsuru <[email protected]>"
- "Claudio Netto <[email protected]>"
skip_upload: auto
git_url: "ssh://[email protected]/tsuru-bin.git"
private_key: "{{ .Env.AUR_KEY }}"