-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.goreleaser.yml
More file actions
49 lines (45 loc) · 1.04 KB
/
.goreleaser.yml
File metadata and controls
49 lines (45 loc) · 1.04 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
# Visit https://goreleaser.com for documentation on how to customize this
# behavior.
---
version: 2
builds:
- id: binary
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
binary: external-dns-hetzner-webhook
ldflags:
- -s
- -w
- -X {{ .ModulePath }}/internal/version.version=v{{ .Version }}
- -X {{ .ModulePath }}/internal/version.versionPrerelease={{- if .IsSnapshot -}}dev+{{ .ShortCommit }}{{- end -}}
kos:
- id: container-image
build: binary
repositories:
- hetzner/external-dns-hetzner-webhook
platforms:
- linux/amd64
- linux/arm64
base_image: alpine
bare: true
user: 1000:1000
labels:
org.opencontainers.image.source: https://github.com/hetzner/external-dns-hetzner-webhook
tags:
- "{{.Tag}}"
archives:
- id: archive
ids:
- binary
name_template: "{{ .Binary }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
files:
- LICENSE
- README.md
release:
ids:
- archive