Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add packaged helm chart to release artifacts #378

Merged
merged 1 commit into from
Mar 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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