summaryrefslogtreecommitdiffstats
path: root/.travis
diff options
context:
space:
mode:
authorPaweł Krupa <pawel@krupa.net.pl>2019-01-04 14:25:08 +0100
committerGitHub <noreply@github.com>2019-01-04 14:25:08 +0100
commit838ea606051701d64a291b8e9cf621dbc545b8c2 (patch)
tree459da6b9e08e4f5b43b5ea66a42a0cc4738e621d /.travis
parent792a0e805454c79732c42caa72bc74aa489129e4 (diff)
do not publish artifacts on RC tags (#5114)
Diffstat (limited to '.travis')
-rwxr-xr-x.travis/releaser.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/.travis/releaser.sh b/.travis/releaser.sh
index 45e8b362e2..937cbeb1f1 100755
--- a/.travis/releaser.sh
+++ b/.travis/releaser.sh
@@ -56,6 +56,11 @@ git tag "$GIT_TAG" -a -m "Automatic tag generation for travis build no. $TRAVIS_
git push "https://${GITHUB_TOKEN}:@$(git config --get remote.origin.url | sed -e 's/^https:\/\///')"
git push "https://${GITHUB_TOKEN}:@$(git config --get remote.origin.url | sed -e 's/^https:\/\///')" --tags
+if [ -z ${RC+x} ]; then
+ echo "This is a release candidate tag, exiting without artifact building"
+ exit 0
+fi
+
echo "---- CREATING TAGGED DOCKER CONTAINERS ----"
export REPOSITORY="netdata/netdata"
./packaging/docker/build.sh
@@ -79,6 +84,4 @@ if [ "${GIT_TAG}" != "$(git tag --points-at)" ]; then
echo "ERROR! Current commit is not tagged. Stopping release creation."
exit 1
fi
-if [ ! -z ${RC+x} ]; then
- hub release create --draft -a "netdata-${GIT_TAG}.tar.gz" -a "netdata-${GIT_TAG}.gz.run" -a "sha256sums.txt" -m "${GIT_TAG}" "${GIT_TAG}"
-fi
+hub release create --draft -a "netdata-${GIT_TAG}.tar.gz" -a "netdata-${GIT_TAG}.gz.run" -a "sha256sums.txt" -m "${GIT_TAG}" "${GIT_TAG}"