-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathgoreleaser.yaml
156 lines (133 loc) · 3.93 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
project_name: pomerium-cli
release:
prerelease: auto
github:
owner: pomerium
name: cli
name_template: "v{{.Version}}"
env:
- GO111MODULE=on
- CGO_ENABLED=0
before:
hooks:
- go mod download
builds:
- id: pomerium-cli
main: ./cmd/pomerium-cli
binary: pomerium-cli
goarch:
- amd64
- arm
- arm64
goos:
- linux
- freebsd
goarm:
- "6"
- "7"
ignore:
- goos: freebsd
goarch: arm64
- goos: freebsd
goarch: arm
ldflags:
- "-s -w {{ .Env.VERSION_FLAGS }}"
archives:
- name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
id: pomerium-cli
builds:
- pomerium-cli
files:
- none*
format_overrides:
- goos: windows
format: zip
checksum:
disable: true
snapshot:
name_template: "{{ .Version }}+next+{{ .ShortCommit }}"
brews:
- # Name template of the recipe
name: pomerium-cli
# IDs of the archives to use.
ids:
- pomerium-cli
# GOARM to specify which 32-bit arm version to use if there are multiple versions
# from the build section. Brew formulas support atm only one 32-bit version.
# Default is 6 for all artifacts or each id if there a multiple versions.
goarm: 6
tap:
owner: pomerium
name: homebrew-tap
# Optionally a token can be provided, if it differs from the token provided to GoReleaser
token: "{{ .Env.APPARITOR_GITHUB_TOKEN }}"
# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: apparitor
email: apparitor@users.noreply.github.com
folder: Formula
install: |
bin.install "pomerium-cli"
nfpms:
- id: pomerium-cli
builds:
- pomerium-cli
package_name: pomerium-cli
vendor: Pomerium, Inc.
homepage: https://www.pomerium.com
description: Local client for Pomerium, an identity aware proxy.
maintainer: Pomerium <info@pomerium.com>
license: Apache 2.0
epoch: 1
release: 1
meta: false
formats:
- deb
- rpm
bindir: /usr/bin
overrides:
deb:
replacements:
arm64: arm64
file_name_template: '{{ .ProjectName }}_{{ .Version }}-{{ .Release }}_{{ .Arch }}{{ if .Arm }}{{if eq .Arm "7"}}hf{{ end }}{{ end }}'
rpm:
replacements:
arm64: aarch64
amd64: x86_64
file_name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Release }}.{{ .Arch }}{{ if .Arm }}{{if eq .Arm "7"}}hf{{ end }}{{ end }}'
dockers:
- image_templates:
- "pomerium/cli:amd64-{{ .Tag }}"
dockerfile: Dockerfile.release
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--label=repository=http://github.com/pomerium/cli"
- "--label=homepage=http://www.pomerium.io"
- goarch: arm64
image_templates:
- "pomerium/cli:arm64v8-{{ .Tag }}"
dockerfile: Dockerfile.release
use: buildx
build_flag_templates:
- "--pull"
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--label=repository=http://github.com/pomerium/cli"
- "--label=homepage=http://www.pomerium.io"
docker_manifests:
- name_template: "pomerium/cli:{{ .Tag }}"
image_templates:
- pomerium/cli:arm64v8-{{ .Tag }}
- pomerium/cli:amd64-{{ .Tag }}