Only upload nightly if on master branch
This commit is contained in:
parent
c1c85f4330
commit
6cbc90da50
|
@ -87,6 +87,11 @@ elif [ -n "${PACKAGE}" ]; then
|
||||||
# install boto & rpm (packaging & AWS dependencies)
|
# install boto & rpm (packaging & AWS dependencies)
|
||||||
exit_if_fail sudo apt-get install -y rpm python-boto
|
exit_if_fail sudo apt-get install -y rpm python-boto
|
||||||
unset GOGC
|
unset GOGC
|
||||||
exit_if_fail ./scripts/build.py --nightly --package --platform=all --arch=all --upload --bucket=dl.influxdata.com/telegraf/nightlies
|
if [ "$(git rev-parse --abbrev-ref HEAD)" = master ]
|
||||||
|
then
|
||||||
|
exit_if_fail ./scripts/build.py --nightly --package --platform=all --arch=all --upload --bucket=dl.influxdata.com/telegraf/nightlies
|
||||||
|
else
|
||||||
|
exit_if_fail ./scripts/build.py --package --platform=all --arch=all
|
||||||
|
fi
|
||||||
mv build $CIRCLE_ARTIFACTS
|
mv build $CIRCLE_ARTIFACTS
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue