-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
50 lines (43 loc) · 1022 Bytes
/
.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
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:
- "ghcr.io/flashbots/slogth:{{ .Tag }}-amd64"
- dockerfile: Dockerfile.goreleaser
goarch: arm64
goos: linux
use: buildx
build_flag_templates:
- --platform=linux/arm64
image_templates:
- "ghcr.io/flashbots/slogth:{{ .Tag }}-arm64"
docker_manifests:
- name_template: "ghcr.io/flashbots/slogth:{{ .Tag }}"
image_templates:
- "ghcr.io/flashbots/slogth:{{ .Tag }}-amd64"
- "ghcr.io/flashbots/slogth:{{ .Tag }}-arm64"