mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-24 23:38:16 +00:00
Compare commits
4 Commits
release-ku
...
kustomize/
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d53a2ad45d | ||
|
|
bb02a7645b | ||
|
|
5a9d90c872 | ||
|
|
4fd7269643 |
@@ -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:
|
||||
@@ -91,7 +92,6 @@ builds:
|
||||
goos:
|
||||
- linux
|
||||
- darwin
|
||||
- windows
|
||||
|
||||
goarch:
|
||||
- amd64
|
||||
@@ -112,14 +112,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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -29,14 +29,17 @@ cp releasing/cloudbuild.yaml $config
|
||||
# in the kustomize/dist directory.
|
||||
sed -i "s|# - '--snapshot|- '--snapshot|" $config
|
||||
|
||||
echo "Executing cloud-build-local with:"
|
||||
echo "Executing cloud-build-local with config file $config :"
|
||||
echo "========================="
|
||||
cat $config
|
||||
echo "========================="
|
||||
|
||||
workspace=~/cloud-build-local-workspace
|
||||
|
||||
cloud-build-local \
|
||||
--config=$config \
|
||||
--substitutions=TAG_NAME=$1 \
|
||||
--write-workspace=$workspace \
|
||||
--dryrun=false \
|
||||
.
|
||||
|
||||
@@ -47,3 +50,5 @@ echo "Result of local build:"
|
||||
echo "##########################################"
|
||||
tree ./$module/dist
|
||||
echo "##########################################"
|
||||
tree ./$workspace
|
||||
echo "##########################################"
|
||||
|
||||
Reference in New Issue
Block a user