-
Notifications
You must be signed in to change notification settings - Fork 4
/
.goreleaser.yaml
102 lines (93 loc) · 2.38 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
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
# Documentation https://goreleaser.com
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
before:
hooks:
- go mod tidy
builds:
- binary: flow
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
ldflags: >-
-s -w
-X "github.com/jahvon/flow/cmd/internal/version.gitCommit={{ .Commit }}"
-X "github.com/jahvon/flow/cmd/internal/version.version={{ .Version }}"
-X "github.com/jahvon/flow/cmd/internal/version.buildDate={{ .Date }}"
gomod:
proxy: true
archives:
- format: tar.gz
files:
- LICENSE
- README.md
- completions
name_template: >-
{{ .Binary }}_
{{- .Tag }}_
{{- .Os }}_
{{- .Arch }}
brews:
- name: flow
homepage: https://flowexec.io
license: Apache-2.0
directory: Formula
repository:
owner: jahvon
name: homebrew-tap
token: "{{ .Env.HOMEBREW_FLOW_GITHUB_TOKEN }}"
dependencies:
- name: xclip
os: linux
install: |
bin.install "flow"
bash_completion.install "completions/flow.bash"
zsh_completion.install "completions/flow.zsh"
fish_completion.install "completions/flow.fish"
test: |
system "#{bin}/flow --version"
dockers:
- image_templates:
- "ghcr.io/jahvon/flow:{{ .Tag }}-amd64"
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
goarch: amd64
- image_templates:
- "ghcr.io/jahvon/flow:{{ .Tag }}-arm64"
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/arm64"
goarch: arm64
docker_manifests:
- name_template: "ghcr.io/jahvon/flow:{{ .Tag }}"
image_templates:
- "ghcr.io/jahvon/flow:{{ .Tag }}-amd64"
- "ghcr.io/jahvon/flow:{{ .Tag }}-arm64"
- name_template: "ghcr.io/jahvon/flow:latest"
image_templates:
- "ghcr.io/jahvon/flow:{{ .Tag }}-amd64"
- "ghcr.io/jahvon/flow:{{ .Tag }}-arm64"
changelog:
sort: asc
groups:
- title: "New features"
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: "Bug fixes"
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: "Documentation updates"
regexp: '^.*?docs(\([[:word:]]+\))??!?:.+$'
order: 2
- title: "Miscellaneous"
order: 999