This repository has been archived by the owner on Jan 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy path.goreleaser.yml
121 lines (121 loc) · 3.52 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
project_name: tier
release:
prerelease: auto # don't publish release with -rc1,-pre, etc suffixes
before:
hooks:
- go mod tidy
# - ./script/completions
builds:
- id: darwin-amd64
goos:
- darwin
goarch:
- amd64
main: ./cmd/tier
binary: "tier"
ldflags:
- -X tier.run/version.Long={{.Env.VERSION_LONG}} -X tier.run/version.Short={{.Env.VERSION_SHORT}} -X tier.run/version.GitCommit={{.Env.VERSION_GIT_HASH}}
- id: darwin-arm64
goos:
- darwin
goarch:
- arm64
main: ./cmd/tier
binary: "tier"
ldflags:
- -X tier.run/version.Long={{.Env.VERSION_LONG}} -X tier.run/version.Short={{.Env.VERSION_SHORT}} -X tier.run/version.GitCommit={{.Env.VERSION_GIT_HASH}}
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
goarch:
- amd64
- arm64
main: ./cmd/tier
binary: "tier"
ldflags:
- -X tier.run/version.Long={{.Env.VERSION_LONG}} -X tier.run/version.Short={{.Env.VERSION_SHORT}} -X tier.run/version.GitCommit={{.Env.VERSION_GIT_HASH}}
dockers:
- use: buildx
goos: linux
goarch: arm64
image_templates:
- "tierrun/{{ .ProjectName }}:{{ .Tag }}-arm64v8"
- "tierrun/{{ .ProjectName }}:latest-arm64v8"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Tag}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/arm64/v8"
dockerfile: Dockerfile.goreleaser
- use: buildx
goos: linux
goarch: amd64
image_templates:
- "tierrun/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "tierrun/{{ .ProjectName }}:latest-amd64"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Tag}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/amd64"
dockerfile: Dockerfile.goreleaser
docker_manifests:
- name_template: "tierrun/{{ .ProjectName }}:{{ .Tag }}"
image_templates:
- "tierrun/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "tierrun/{{ .ProjectName }}:{{ .Tag }}-arm64v8"
- name_template: "tierrun/{{ .ProjectName }}:latest"
image_templates:
- "tierrun/{{ .ProjectName }}:{{ .Tag }}-amd64"
- "tierrun/{{ .ProjectName }}:{{ .Tag }}-arm64v8"
nfpms:
- maintainer: Tier
description: The Tier CLI
homepage: https://github.com/tierrun/tier
license: BSD-3-Clause
formats:
- deb
- rpm
brews:
- homepage: "https://tier.run/"
description: "The Tier CLI"
name: "tier"
license: BSD-3-Clause
tap:
owner: tierrun
name: homebrew-tap
folder: Formula
test: |
system "#{bin}/tier version --homebrew"
# install: |
# bin.install "tier"
# bash_completion.install "completions/tier.bash" => "tier"
# zsh_completion.install "completions/tier.zsh" => "_tier"
# fish_completion.install "completions/tier.fish"
archives:
-
rlcp: true
format_overrides:
- goos: windows
format: zip
files:
- README.md
- LICENSE
# - completions/*
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- Merge pull request