-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
62 lines (62 loc) · 1.75 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
env:
- REPO={{ .Env.ACCOUNT }}.dkr.ecr.ca-central-1.amazonaws.com/protohackers
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
# archives:
# - name_template:
# {{- if eq "amd64" }}x86_64{{- end }}
# - replacements:
# linux: Linux
# amd64: x86_64
checksum:
name_template: "checksums.txt"
dockers:
- id: protohackers-amd-build
ids:
- protohackers
goarch: amd64
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
- "--build-arg=ARCH=amd64"
image_templates:
- "{{ .Env.REPO }}:{{ tolower .ProjectName }}-{{ .Version }}-amd64"
- "{{ .Env.REPO }}:{{ tolower .ProjectName }}-latest-amd64"
dockerfile: Dockerfile
- id: protohackers-arm-build
ids:
- protohackers
goarch: arm64
use: buildx
build_flag_templates:
- "--platform=linux/arm64"
- "--build-arg=ARCH=arm64"
image_templates:
- "{{ .Env.REPO }}:{{ tolower .ProjectName }}-{{ .Version }}-arm64"
- "{{ .Env.REPO }}:{{ tolower .ProjectName }}-latest-arm64"
dockerfile: Dockerfile
docker_manifests:
- name_template: "{{ .Env.REPO }}:{{ tolower .ProjectName }}-{{ .Version }}"
image_templates:
- "{{ .Env.REPO }}:{{ tolower .ProjectName }}-{{ .Version }}-amd64"
- "{{ .Env.REPO }}:{{ tolower .ProjectName }}-{{ .Version }}-arm64"
- name_template: "{{ .Env.REPO }}:{{ tolower .ProjectName }}-latest"
image_templates:
- "{{ .Env.REPO }}:{{ tolower .ProjectName }}-latest-amd64"
- "{{ .Env.REPO }}:{{ tolower .ProjectName }}-latest-arm64"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"