mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Merge pull request #2883 from monopole/tweakCloudBuild
Tweak cloudbuild.sh release note handling
This commit is contained in:
@@ -36,13 +36,16 @@ echo "module=$module"
|
|||||||
|
|
||||||
# Obtain most recent commit hash associated with the module.
|
# Obtain most recent commit hash associated with the module.
|
||||||
lastCommitHash=$(
|
lastCommitHash=$(
|
||||||
git log --tags=$module -1 --oneline --no-walk --pretty=format:%h)
|
git log --tags=$module -1 \
|
||||||
|
--oneline --no-walk --pretty=format:%h)
|
||||||
|
|
||||||
# Generate the changelog for this release
|
# Generate the changelog for this release
|
||||||
# using commit hashes and commit messages.
|
# using commit hashes and commit messages.
|
||||||
cl=$(
|
changeLog=$(mktemp)
|
||||||
git log $lastCommitHash.. --pretty=oneline \
|
git log $lastCommitHash.. \
|
||||||
--abbrev-commit --no-decorate --no-color -- $module)
|
--pretty=oneline \
|
||||||
|
--abbrev-commit --no-decorate --no-color \
|
||||||
|
-- $module > $changeLog
|
||||||
|
|
||||||
# Take everything after the last slash.
|
# Take everything after the last slash.
|
||||||
# This should be something like "v1.2.3".
|
# This should be something like "v1.2.3".
|
||||||
@@ -121,4 +124,8 @@ EOF
|
|||||||
|
|
||||||
cat $configFile
|
cat $configFile
|
||||||
|
|
||||||
/bin/goreleaser release --config=$configFile --rm-dist --skip-validate $remainingArgs --release-notes <"$cl"
|
/bin/goreleaser release \
|
||||||
|
--config=$configFile \
|
||||||
|
--rm-dist \
|
||||||
|
--skip-validate $remainingArgs \
|
||||||
|
--release-notes $changeLog
|
||||||
|
|||||||
Reference in New Issue
Block a user