File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ cat $GOPATH/bin/telegraf | gzip > $CIRCLE_ARTIFACTS/telegraf.gz
7373go build -o telegraf-race -race -ldflags " -X main.version=${VERSION} -RACE" cmd/telegraf/telegraf.go
7474cat telegraf-race | gzip > $CIRCLE_ARTIFACTS /telegraf-race.gz
7575
76- eval " git describe --exact-match HEAD "
77- if [ $? -eq 0 ] ; then
76+
77+ if git describe --exact-match HEAD ; then
7878 # install fpm (packaging dependency)
7979 exit_if_fail gem install fpm
8080 # install boto & rpm (packaging & AWS dependencies)
@@ -84,4 +84,12 @@ if [ $? -eq 0 ]; then
8484 echo $tag
8585 exit_if_fail ./scripts/build.py --release --package --platform=all --arch=all --upload --bucket=dl.influxdata.com/telegraf/releases
8686 mv build $CIRCLE_ARTIFACTS
87+ elif [ -n " ${PACKAGE} " ]; then
88+ # install fpm (packaging dependency)
89+ exit_if_fail gem install fpm
90+ # install boto & rpm (packaging & AWS dependencies)
91+ exit_if_fail sudo apt-get install -y rpm python-boto
92+ unset GOGC
93+ exit_if_fail ./scripts/build.py --package --platform=all --arch=all
94+ mv build $CIRCLE_ARTIFACTS
8795fi
You can’t perform that action at this time.
0 commit comments