do not publish artifacts on RC tags (#5114)
Paweł Krupa committed
Jan 4, 2019 at 14:25 UTC
838ea606051701d64a291b8e9cf621dbc545b8c2
1 file changed
+6
-3
.travis/releaser.sh
+6
-3
@@ -56,6 +56,11 @@ git tag "$GIT_TAG" -a -m "Automatic tag generation for travis build no. $TRAVIS_
56
git push "https://${GITHUB_TOKEN}:@$(git config --get remote.origin.url | sed -e 's/^https:\/\///')"
57
git push "https://${GITHUB_TOKEN}:@$(git config --get remote.origin.url | sed -e 's/^https:\/\///')" --tags
58
59
+if [ -z ${RC+x} ]; then
60
+ echo "This is a release candidate tag, exiting without artifact building"
61
+ exit 0
62
+fi
63
+
64
echo "---- CREATING TAGGED DOCKER CONTAINERS ----"
65
export REPOSITORY="netdata/netdata"
66
./packaging/docker/build.sh
@@ -79,6 +84,4 @@ if [ "${GIT_TAG}" != "$(git tag --points-at)" ]; then
84
echo "ERROR! Current commit is not tagged. Stopping release creation."
85
exit 1
86
fi
82
-if [ ! -z ${RC+x} ]; then
83
- hub release create --draft -a "netdata-${GIT_TAG}.tar.gz" -a "netdata-${GIT_TAG}.gz.run" -a "sha256sums.txt" -m "${GIT_TAG}" "${GIT_TAG}"
84
-fi
87
+hub release create --draft -a "netdata-${GIT_TAG}.tar.gz" -a "netdata-${GIT_TAG}.gz.run" -a "sha256sums.txt" -m "${GIT_TAG}" "${GIT_TAG}"