-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathgoreleaser.yaml
More file actions
123 lines (106 loc) · 2.98 KB
/
Copy pathgoreleaser.yaml
File metadata and controls
123 lines (106 loc) · 2.98 KB
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
version: 2
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
ids:
- pomerium-cli
files:
- none*
format_overrides:
- goos: windows
formats: [ 'zip' ]
checksum:
disable: true
snapshot:
version_template: "{{ .Version }}+next+{{ .ShortCommit }}"
nfpms:
- id: pomerium-cli
ids:
- 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
file_name_template: >-
{{- trimsuffix .ConventionalFileName .ConventionalExtension -}}
{{- if and (eq .Arm "6") (eq .ConventionalExtension ".deb") }}6{{ end -}}
{{- if not (eq .Amd64 "v1")}}{{ .Amd64 }}{{ end -}}
{{- .ConventionalExtension -}}
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=https://www.pomerium.com"
- 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=https://www.pomerium.com"
docker_manifests:
- name_template: "pomerium/cli:{{ .Tag }}"
image_templates:
- pomerium/cli:arm64v8-{{ .Tag }}
- pomerium/cli:amd64-{{ .Tag }}