release process: upgrade to goreleaser v0.172.1 calling go go1.16.5

This commit is contained in:
monopole
2021-06-30 14:02:55 -07:00
parent 1eb3c1a075
commit 4fd7269643
2 changed files with 8 additions and 5 deletions

View File

@@ -72,8 +72,9 @@ if [[ "$module" == "kustomize" || "$module" == "pluginator" ]]; then
skipBuild=false
fi
configFile=$(mktemp)
cat <<EOF >$configFile
goReleaserConfigFile=$(mktemp)
cat <<EOF >$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

View File

@@ -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