mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #18587 from ivanvc/release-3.4-release-push-tag
[3.4] release: push tag after creating it
This commit is contained in:
commit
b1bdb4742f
@ -125,7 +125,7 @@ main() {
|
||||
|
||||
# Push the version change if it's not already been pushed.
|
||||
if [ "$DRY_RUN" != "true" ] && [ "$(git rev-list --count "origin/${BRANCH}..${BRANCH}")" -gt 0 ]; then
|
||||
read -p "Push version bump up to ${VERSION} to github.com/etcd-io/etcd [y/N]? " -r confirm
|
||||
read -p "Push version bump up to ${VERSION} to ${REPOSITORY} [y/N]? " -r confirm
|
||||
[[ "${confirm,,}" == "y" ]] || exit 1
|
||||
git push
|
||||
fi
|
||||
@ -142,6 +142,12 @@ main() {
|
||||
exit 1
|
||||
fi
|
||||
git tag --local-user "${KEYID}" --sign "${RELEASE_VERSION}" --message "${RELEASE_VERSION}"
|
||||
|
||||
if [ "$DRY_RUN" != "true" ]; then
|
||||
read -p "Push tag ${RELEASE_VERSION} to ${REPOSITORY} [y/N]? " -r confirm
|
||||
[[ "${confirm,,}" == "y" ]] || exit 1
|
||||
git push origin "${RELEASE_VERSION}"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Verify the latest commit has the version tag
|
||||
@ -186,7 +192,6 @@ main() {
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# Build release.
|
||||
# TODO: check the release directory for all required build artifacts.
|
||||
if [ -d release ]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user