-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
87 lines (87 loc) · 2.45 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
before:
hooks:
- go mod download
# you may remove this if you don't need go generate
- go generate ./...
project_name: auth-gateway
builds:
- id: auth-gateway-darwin
ldflags:
-s -w -X github.com/cortexproject/auth-gateway/version.Version={{.Version}}
binary: auth-gateway
env:
- CGO_ENABLED=0
goos:
- darwin
goarch:
- amd64
- arm64
- id: auth-gateway-linux
ldflags:
-s -w -X github.com/cortexproject/auth-gateway/version.Version={{.Version}}
binary: auth-gateway
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
- id: auth-gateway-windows
ldflags:
-s -w -X github.com/cortexproject/auth-gateway/version.Version={{.Version}}
binary: auth-gateway
env:
- CGO_ENABLED=0
goos:
- windows
goarch:
- amd64
- arm64
archives:
- format_overrides:
- goos: windows
format: zip
files:
- none*
format: binary
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
dockers:
- goarch: amd64
image_templates:
- "quay.io/cortexproject/auth-gateway:{{ .Tag }}-amd64"
build_flag_templates:
- "--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=repository=https://github.com/cortexproject/auth-gateway"
- "--label=homepage=https://cortexmetrics.io"
- "--platform=linux/amd64"
use: buildx
- goarch: arm64
image_templates:
- "quay.io/cortexproject/auth-gateway:{{ .Tag }}-arm64"
build_flag_templates:
- "--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=repository=https://github.com/cortexproject/auth-gateway"
- "--label=homepage=https://cortexmetrics.io"
- "--platform=linux/arm64"
use: buildx
docker_manifests:
- name_template: "quay.io/cortexproject/auth-gateway:{{.Tag}}"
image_templates:
- "quay.io/cortexproject/auth-gateway:{{.Tag}}-amd64"
- "quay.io/cortexproject/auth-gateway:{{.Tag}}-arm64"