-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
56 lines (49 loc) · 1.38 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
env:
- CGO_ENABLED=0
builds:
- main: ./cmd
ldflags:
- -s
- -w
- -X main.version={{ .Version }}
targets:
- linux_amd64
- linux_arm64
archives:
- id: zip
format: zip
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
files:
- none*
checksum:
name_template: 'checksums.txt'
release:
prerelease: auto
dockers:
- dockerfile: Dockerfile.goreleaser
goarch: amd64
goos: linux
use: buildx
build_flag_templates:
- --platform=linux/amd64
image_templates:
- "flashbots/kube-sidecar-injector:{{ .Tag }}-amd64"
- "ghcr.io/flashbots/kube-sidecar-injector:{{ .Tag }}-amd64"
- dockerfile: Dockerfile.goreleaser
goarch: arm64
goos: linux
use: buildx
build_flag_templates:
- --platform=linux/arm64
image_templates:
- "flashbots/kube-sidecar-injector:{{ .Tag }}-arm64"
- "ghcr.io/flashbots/kube-sidecar-injector:{{ .Tag }}-arm64"
docker_manifests:
- name_template: "flashbots/kube-sidecar-injector:{{ .Tag }}"
image_templates:
- "flashbots/kube-sidecar-injector:{{ .Tag }}-amd64"
- "flashbots/kube-sidecar-injector:{{ .Tag }}-arm64"
- name_template: "ghcr.io/flashbots/kube-sidecar-injector:{{ .Tag }}"
image_templates:
- "ghcr.io/flashbots/kube-sidecar-injector:{{ .Tag }}-amd64"
- "ghcr.io/flashbots/kube-sidecar-injector:{{ .Tag }}-arm64"