forked from hetznercloud/hcloud-cloud-controller-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
51 lines (47 loc) · 1.92 KB
/
.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
51
# Visit https://goreleaser.com for documentation on how to customize this
# behavior.
---
before:
hooks:
- go mod tidy
builds:
- id: hcloud-cloud-controller-manager
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
- arm
binary: hcloud-cloud-controller-manager
ldflags:
- "-s -w -X github.com/hetznercloud/hcloud-cloud-controller-manager/hcloud.providerVersion={{ if not .IsSnapshot }}v{{ end }}{{ .Version }}"
dockers:
- build_flag_templates: [--platform=linux/amd64]
dockerfile: Dockerfile
goarch: amd64
image_templates: ["ghcr.io/myopenfactory/hcloud-cloud-controller-manager:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}-amd64-rootsupport"]
use: buildx
- build_flag_templates: [--platform=linux/arm64]
dockerfile: Dockerfile
goarch: arm64
image_templates: ["ghcr.io/myopenfactory/hcloud-cloud-controller-manager:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}-arm64v8-rootsupport"]
use: buildx
- build_flag_templates: [--platform=linux/arm/v6]
dockerfile: Dockerfile
goarch: arm
goarm: 6
image_templates: ["ghcr.io/myopenfactory/hcloud-cloud-controller-manager:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}-armv6-rootsupport"]
use: buildx
docker_manifests:
- name_template: ghcr.io/myopenfactory/hcloud-cloud-controller-manager:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}-rootsuport
image_templates:
- ghcr.io/myopenfactory/hcloud-cloud-controller-manager:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}-amd64-rootsupport
- ghcr.io/myopenfactory/hcloud-cloud-controller-manager:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}-arm64v8-rootsupport
- ghcr.io/myopenfactory/hcloud-cloud-controller-manager:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}-armv6-rootsupport
release:
ids: [""]
extra_files:
- glob: "./deploy/ccm*.yaml"
- glob: "./hcloud-cloud-controller-manager-*.tgz"