-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
77 lines (70 loc) · 2.06 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
project_name: contributoor
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/sentry
binary: sentry
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
goarch:
- amd64
- arm64
ldflags:
- -s -w -X github.com/ethpandaops/contributoor/internal/contributoor.Release={{.Tag}} -X github.com/ethpandaops/contributoor/internal/contributoor.GitCommit={{.ShortCommit}} -X github.com/ethpandaops/contributoor/internal/contributoor.GOOS={{.Os}} -X github.com/ethpandaops/contributoor/internal/contributoor.GOARCH={{.Arch}}
mod_timestamp: "{{ .CommitTimestamp }}"
dockers:
- use: buildx
goos: linux
goarch: amd64
dockerfile: Dockerfile
image_templates:
- "ethpandaops/contributoor:{{ .Version }}-amd64"
- "ethpandaops/contributoor:latest-amd64"
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.version={{.Version}}"
extra_files:
- go.mod
- go.sum
- use: buildx
goos: linux
goarch: arm64
dockerfile: Dockerfile
image_templates:
- "ethpandaops/contributoor:{{ .Version }}-arm64v8"
- "ethpandaops/contributoor:latest-arm64v8"
build_flag_templates:
- "--platform=linux/arm64/v8"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.version={{.Version}}"
extra_files:
- go.mod
- go.sum
docker_manifests:
- name_template: ethpandaops/contributoor:{{ .Version }}
image_templates:
- ethpandaops/contributoor:{{ .Version }}-amd64
- ethpandaops/contributoor:{{ .Version }}-arm64v8
- name_template: ethpandaops/contributoor:latest
image_templates:
- ethpandaops/contributoor:latest-amd64
- ethpandaops/contributoor:latest-arm64v8
archives:
- format: tar.gz
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- .Arch }}
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^ci:'