forked from 23technologies/hcloud-cloud-controller-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
42 lines (41 loc) · 1.11 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
# 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
binary: hcloud-cloud-controller-manager
ldflags:
- "-s -w -X hcloud.providerVersion={{ if not .IsSnapshot }}v{{ end }}{{ .Version }}"
hooks:
post: "./scripts/generate-deployment-yamls.sh {{ if not .IsSnapshot }}v{{ end }}{{ .Version }}"
archives:
- id: deployment-yamls
# builds: [""]
name_template: "{{ .ProjectName }}_{{ .Version }}_deployment_yamls"
wrap_in_directory: true
dockers:
- ids:
- hcloud-cloud-controller-manager
goos: linux
goarch: amd64
image_templates:
- "hetznercloud/hcloud-cloud-controller-manager:latest"
- "hetznercloud/hcloud-cloud-controller-manager:{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}"
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
release:
ids: [""]
draft: true
extra_files:
- glob: "./deploy/gen/ccm*.yaml"