package.sh script fixes for uploading binaries
This commit is contained in:
parent
6d42973d7c
commit
e47801074e
|
@ -307,10 +307,9 @@ if [ "$CIRCLE_BRANCH" == "" ]; then
|
||||||
|
|
||||||
# Upload binaries
|
# Upload binaries
|
||||||
for b in ${BINS[*]}; do
|
for b in ${BINS[*]}; do
|
||||||
bin=$GOPATH_INSTALL/bin/$b
|
zippedbin=${b}_${VERSION}_linux_x86_64.tar.gz
|
||||||
zippedbin=$b_$VERSION_linux_x86_64.tar.gz
|
|
||||||
# Zip the binary
|
# Zip the binary
|
||||||
tar -zcf $TMP_WORK_DIR/$zippedbin $bin
|
tar -zcf $TMP_WORK_DIR/$zippedbin -C $GOPATH_INSTALL/bin ./$b
|
||||||
echo "Uploading binary: $zippedbin to S3"
|
echo "Uploading binary: $zippedbin to S3"
|
||||||
AWS_CONFIG_FILE=$AWS_FILE aws s3 cp $TMP_WORK_DIR/$zippedbin \
|
AWS_CONFIG_FILE=$AWS_FILE aws s3 cp $TMP_WORK_DIR/$zippedbin \
|
||||||
s3://get.influxdb.org/telegraf/$zippedbin \
|
s3://get.influxdb.org/telegraf/$zippedbin \
|
||||||
|
|
Loading…
Reference in New Issue