Skip to content
Snippets Groups Projects
Unverified Commit afcc1251 authored by Julian Tölle's avatar Julian Tölle Committed by GitHub
Browse files

ci: fix goreleaser helm chart config (#390)

There were [two
issues](https://github.com/hetznercloud/hcloud-cloud-controller-manager/actions/runs/4407161651/jobs/7720443310#step:9:54)
with the goreleaser config:

- The publishing step is executed once per artifact by default, we have
two artifacts (`deployment-yamls`, `hcloud-cloud-controller-manager`).
By setting the id we make sure that its only executed once.
- The CHART_REPO_REMOTE variable was not available in the script.
Environment variables need to be explicitly passed to downstream
commands in goreleaser.
parent 7cd2c691
No related branches found
No related tags found
Loading
...@@ -46,4 +46,8 @@ release: ...@@ -46,4 +46,8 @@ release:
publishers: publishers:
- name: helm-chart-repo - name: helm-chart-repo
ids: # make sure that this is only executed once by filtering for *one arbitrary* artifact ID
- deployment-yamls
cmd: ./scripts/publish-helm-chart.sh hcloud-cloud-controller-manager-{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}.tgz cmd: ./scripts/publish-helm-chart.sh hcloud-cloud-controller-manager-{{ if not .IsSnapshot }}v{{ end }}{{ .Version }}.tgz
env:
- CHART_REPO_REMOTE={{ .Env.CHART_REPO_REMOTE }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment