mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-30 01:46:23 +00:00
Compare commits
4 Commits
release-ku
...
release-ku
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d53a2ad45d | ||
|
|
bb02a7645b | ||
|
|
5a9d90c872 | ||
|
|
4fd7269643 |
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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 "##########################################"
|
||||||
|
|||||||
Reference in New Issue
Block a user