mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
release: push tag after creating it
Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
parent
c123b3ea3d
commit
6e5a60ec52
@ -70,7 +70,7 @@ main() {
|
|||||||
git checkout "${BRANCH}" || exit 2
|
git checkout "${BRANCH}" || exit 2
|
||||||
git pull origin
|
git pull origin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If a release version tag already exists, use it.
|
# If a release version tag already exists, use it.
|
||||||
log_callout "Checking tag: ${RELEASE_VERSION}"
|
log_callout "Checking tag: ${RELEASE_VERSION}"
|
||||||
local remote_tag_exists
|
local remote_tag_exists
|
||||||
@ -125,7 +125,7 @@ main() {
|
|||||||
|
|
||||||
# Push the version change if it's not already been pushed.
|
# 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
|
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
|
[[ "${confirm,,}" == "y" ]] || exit 1
|
||||||
git push
|
git push
|
||||||
fi
|
fi
|
||||||
@ -142,6 +142,12 @@ main() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
git tag --local-user "${KEYID}" --sign "${RELEASE_VERSION}" --message "${RELEASE_VERSION}"
|
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
|
fi
|
||||||
|
|
||||||
# Verify the latest commit has the version tag
|
# Verify the latest commit has the version tag
|
||||||
@ -185,7 +191,6 @@ main() {
|
|||||||
log_error "Error: Expected clean working tree, but 'git diff --stat' reported: ${diff}"
|
log_error "Error: Expected clean working tree, but 'git diff --stat' reported: ${diff}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Build release.
|
# Build release.
|
||||||
# TODO: check the release directory for all required build artifacts.
|
# TODO: check the release directory for all required build artifacts.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user