Skip to content

Commit

Permalink
feat: add packaged helm chart to release artifacts (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
apricote authored Mar 3, 2023
1 parent cf8d2e6 commit 06708bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
before:
hooks:
- go mod tidy
- ./scripts/generate-deployment-yamls.sh {{ if not .IsSnapshot }}v{{ end }}{{ .Version }}

builds:
- id: hcloud-cloud-controller-manager
env:
Expand All @@ -15,8 +17,7 @@ builds:
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: [""]
Expand All @@ -35,8 +36,10 @@ dockers:
use: buildx
build_flag_templates:
- "--platform=linux/amd64"

release:
ids: [""]
draft: true
extra_files:
- glob: "./deploy/gen/ccm*.yaml"
- glob: "./hcloud-cloud-controller-manager-*.tgz"
1 change: 1 addition & 0 deletions scripts/generate-deployment-yamls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ cat chart/Chart.yaml | sed -e "s/version: .*/version: $VERSION/" > chart/Chart.y
helm template chart > deploy/ccm.yaml
helm template chart --set networking.enabled=true > deploy/ccm-networks.yaml

helm package chart

0 comments on commit 06708bf

Please sign in to comment.