-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
61 lines (54 loc) · 1.37 KB
/
Copy path.goreleaser.yaml
File metadata and controls
61 lines (54 loc) · 1.37 KB
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
project_name: external-dns-pscloud-webhook
before:
hooks:
- go mod download
builds:
- id: external-dns-pscloud-webhook
main: ./cmd/webhook
binary: external-dns-pscloud-webhook
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w
goos:
- linux
goarch:
- amd64
- arm64
dockers:
- ids:
- external-dns-pscloud-webhook
image_templates:
- ghcr.io/{{ .Env.IMAGE_OWNER }}/{{ .ProjectName }}:{{ .Version }}-amd64
goos: linux
goarch: amd64
dockerfile: goreleaser.dockerfile
build_flag_templates:
- --platform=linux/amd64
use: buildx
- ids:
- external-dns-pscloud-webhook
image_templates:
- ghcr.io/{{ .Env.IMAGE_OWNER }}/{{ .ProjectName }}:{{ .Version }}-arm64
goos: linux
goarch: arm64
dockerfile: goreleaser.dockerfile
build_flag_templates:
- --platform=linux/arm64
use: buildx
docker_manifests:
- name_template: ghcr.io/{{ .Env.IMAGE_OWNER }}/{{ .ProjectName }}:{{ .Version }}
image_templates:
- ghcr.io/{{ .Env.IMAGE_OWNER }}/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/{{ .Env.IMAGE_OWNER }}/{{ .ProjectName }}:{{ .Version }}-arm64
archives:
- formats:
- tar.gz
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
algorithm: sha256
release:
prerelease: auto
replace_existing_draft: true