diff --git a/releasing/cloudbuild.sh b/releasing/cloudbuild.sh index 78e5a44309..d6470b4a9a 100755 --- a/releasing/cloudbuild.sh +++ b/releasing/cloudbuild.sh @@ -72,8 +72,9 @@ if [[ "$module" == "kustomize" || "$module" == "pluginator" ]]; then skipBuild=false fi -configFile=$(mktemp) -cat <$configFile +goReleaserConfigFile=$(mktemp) + +cat <$goReleaserConfigFile project_name: $module archives: @@ -82,6 +83,8 @@ archives: builds: - skip: $skipBuild + gobinary: "go1.16.5" + ldflags: > -s -X sigs.k8s.io/kustomize/api/provenance.version={{.Version}} @@ -112,14 +115,14 @@ release: EOF -cat $configFile +cat $goReleaserConfigFile date time /usr/local/bin/goreleaser release \ --timeout 10m \ --parallelism 4 \ - --config=$configFile \ + --config=$goReleaserConfigFile \ --release-notes=$changeLogFile \ --rm-dist \ --skip-validate $remainingArgs diff --git a/releasing/cloudbuild.yaml b/releasing/cloudbuild.yaml index 97557eea19..4c1e838e1e 100644 --- a/releasing/cloudbuild.yaml +++ b/releasing/cloudbuild.yaml @@ -36,7 +36,7 @@ steps: # Run goreleaser indirectly via a shell script # to configure it properly. -- name: goreleaser/goreleaser:v0.155.0 +- name: goreleaser/goreleaser:v0.172.1 timeout: 12m entrypoint: /bin/sh dir: myClone