We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdd1577 commit ac7a99aCopy full SHA for ac7a99a
hack/release.sh
@@ -18,7 +18,14 @@ if [[ -z "${OS_TAG}" ]]; then
18
fi
19
tag="${OS_TAG}"
20
21
-git tag "${tag}" -a -m "${tag}" HEAD
+if [[ "$(git name-rev --name-only --tags HEAD)" != "${tag}^0" ]]; then
22
+ if git rev-parse -q --short "${tag}" &>/dev/null; then
23
+ echo "Tag ${tag} already exists"
24
+ exit 1
25
+ else
26
+ git tag "${tag}" -a -m "${tag}" HEAD
27
+ fi
28
+fi
29
30
docker pull openshift/origin-base
31
docker pull openshift/origin-release
0 commit comments