Compare commits

...

4 Commits

Author SHA1 Message Date
Jeff Regan
d53a2ad45d Merge pull request #4027 from monopole/deleteWindowsBuild
Temporarily remove windows build.
2021-06-30 15:37:56 -07:00
monopole
bb02a7645b Temporarily remove windows build. 2021-06-30 15:36:57 -07:00
Jeff Regan
5a9d90c872 Merge pull request #4026 from monopole/upgradeGoReleaser
release process: upgrade to goreleaser v0.172.1 calling go1.16.5
2021-06-30 14:04:18 -07:00
monopole
4fd7269643 release process: upgrade to goreleaser v0.172.1 calling go go1.16.5 2021-06-30 14:02:55 -07:00
3 changed files with 12 additions and 7 deletions

View File

@@ -72,8 +72,9 @@ if [[ "$module" == "kustomize" || "$module" == "pluginator" ]]; then
skipBuild=false skipBuild=false
fi fi
configFile=$(mktemp) goReleaserConfigFile=$(mktemp)
cat <<EOF >$configFile
cat <<EOF >$goReleaserConfigFile
project_name: $module project_name: $module
archives: archives:
@@ -91,7 +92,6 @@ builds:
goos: goos:
- linux - linux
- darwin - darwin
- windows
goarch: goarch:
- amd64 - amd64
@@ -112,14 +112,14 @@ release:
EOF EOF
cat $configFile cat $goReleaserConfigFile
date date
time /usr/local/bin/goreleaser release \ time /usr/local/bin/goreleaser release \
--timeout 10m \ --timeout 10m \
--parallelism 4 \ --parallelism 4 \
--config=$configFile \ --config=$goReleaserConfigFile \
--release-notes=$changeLogFile \ --release-notes=$changeLogFile \
--rm-dist \ --rm-dist \
--skip-validate $remainingArgs --skip-validate $remainingArgs

View File

@@ -36,7 +36,7 @@ steps:
# Run goreleaser indirectly via a shell script # Run goreleaser indirectly via a shell script
# to configure it properly. # to configure it properly.
- name: goreleaser/goreleaser:v0.155.0 - name: goreleaser/goreleaser:v0.172.1
timeout: 12m timeout: 12m
entrypoint: /bin/sh entrypoint: /bin/sh
dir: myClone dir: myClone

View File

@@ -29,14 +29,17 @@ cp releasing/cloudbuild.yaml $config
# in the kustomize/dist directory. # in the kustomize/dist directory.
sed -i "s|# - '--snapshot|- '--snapshot|" $config sed -i "s|# - '--snapshot|- '--snapshot|" $config
echo "Executing cloud-build-local with:" echo "Executing cloud-build-local with config file $config :"
echo "=========================" echo "========================="
cat $config cat $config
echo "=========================" echo "========================="
workspace=~/cloud-build-local-workspace
cloud-build-local \ cloud-build-local \
--config=$config \ --config=$config \
--substitutions=TAG_NAME=$1 \ --substitutions=TAG_NAME=$1 \
--write-workspace=$workspace \
--dryrun=false \ --dryrun=false \
. .
@@ -47,3 +50,5 @@ echo "Result of local build:"
echo "##########################################" echo "##########################################"
tree ./$module/dist tree ./$module/dist
echo "##########################################" echo "##########################################"
tree ./$workspace
echo "##########################################"