diff --git a/.goreleaser.yml b/.goreleaser.yml index 804d8d01d37b442d55bcbd22c112ec2b32097c9e..2e5a4e38a128d2949806252c5f9fe22bd6bf1720 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -20,12 +20,6 @@ builds: ldflags: - "-s -w -X github.com/hetznercloud/hcloud-cloud-controller-manager/hcloud.providerVersion={{ if not .IsSnapshot }}v{{ end }}{{ .Version }}" -archives: - - id: deployment-yamls - builds: [""] - name_template: "{{ .ProjectName }}_{{ .Version }}_deployment_yamls" - wrap_in_directory: true - dockers: - build_flag_templates: [--platform=linux/amd64] dockerfile: Dockerfile @@ -59,8 +53,12 @@ release: publishers: - name: helm-chart-repo - ids: # make sure that this is only executed once by filtering for *one arbitrary* artifact ID - - deployment-yamls + + # make sure that this is only executed once. There are no separate ids per binary built, + # we filter for no actual ID and then run the publisher for the checksum. + ids: [""] + checksum: true + 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 }}