Skip to content

Commit

Permalink
release process: upgrade to goreleaser v0.172.1 calling go go1.16.5
Browse files Browse the repository at this point in the history
  • Loading branch information
monopole committed Jun 30, 2021
1 parent 1eb3c1a commit 4fd7269
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions releasing/cloudbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -82,6 +83,8 @@ archives:
builds:
- skip: $skipBuild
gobinary: "go1.16.5"
ldflags: >
-s
-X sigs.k8s.io/kustomize/api/provenance.version={{.Version}}
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion releasing/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fd7269

Please sign in to comment.