parent
0143a4227e
commit
13061d1ec7
|
@ -4,6 +4,7 @@
|
||||||
- [#150](https://github.com/influxdb/telegraf/pull/150): Add Host Uptime metric to system plugin
|
- [#150](https://github.com/influxdb/telegraf/pull/150): Add Host Uptime metric to system plugin
|
||||||
- [#158](https://github.com/influxdb/telegraf/pull/158): Apache Plugin. Thanks @KPACHbIuLLIAnO4
|
- [#158](https://github.com/influxdb/telegraf/pull/158): Apache Plugin. Thanks @KPACHbIuLLIAnO4
|
||||||
- [#165](https://github.com/influxdb/telegraf/pull/165): Add additional metrics to mysql plugin. Thanks @nickscript0
|
- [#165](https://github.com/influxdb/telegraf/pull/165): Add additional metrics to mysql plugin. Thanks @nickscript0
|
||||||
|
- [#166](https://github.com/influxdb/telegraf/pull/166): Upload binaries to S3
|
||||||
|
|
||||||
### Bugfixes
|
### Bugfixes
|
||||||
|
|
||||||
|
|
25
package.sh
25
package.sh
|
@ -260,7 +260,9 @@ else
|
||||||
debian_package=telegraf_${VERSION}_amd64.deb
|
debian_package=telegraf_${VERSION}_amd64.deb
|
||||||
fi
|
fi
|
||||||
|
|
||||||
COMMON_FPM_ARGS="-C $TMP_WORK_DIR --vendor $VENDOR --url $URL --license $LICENSE --maintainer $MAINTAINER --after-install $POST_INSTALL_PATH --name telegraf --version $VERSION --config-files $CONFIG_ROOT_DIR ."
|
COMMON_FPM_ARGS="-C $TMP_WORK_DIR --vendor $VENDOR --url $URL --license $LICENSE \
|
||||||
|
--maintainer $MAINTAINER --after-install $POST_INSTALL_PATH \
|
||||||
|
--name telegraf --version $VERSION --config-files $CONFIG_ROOT_DIR ."
|
||||||
$rpm_args fpm -s dir -t rpm --description "$DESCRIPTION" $COMMON_FPM_ARGS
|
$rpm_args fpm -s dir -t rpm --description "$DESCRIPTION" $COMMON_FPM_ARGS
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Failed to create RPM package -- aborting."
|
echo "Failed to create RPM package -- aborting."
|
||||||
|
@ -289,16 +291,35 @@ if [ "$CIRCLE_BRANCH" == "" ]; then
|
||||||
cleanup_exit 1
|
cleanup_exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Upload .deb and .rpm packages
|
||||||
for filepath in `ls *.{deb,rpm}`; do
|
for filepath in `ls *.{deb,rpm}`; do
|
||||||
echo "Uploading $filepath to S3"
|
echo "Uploading $filepath to S3"
|
||||||
filename=`basename $filepath`
|
filename=`basename $filepath`
|
||||||
echo "Uploading $filename to s3://get.influxdb.org/telegraf/$filename"
|
echo "Uploading $filename to s3://get.influxdb.org/telegraf/$filename"
|
||||||
AWS_CONFIG_FILE=$AWS_FILE aws s3 cp $filepath s3://get.influxdb.org/telegraf/$filename --acl public-read --region us-east-1
|
AWS_CONFIG_FILE=$AWS_FILE aws s3 cp $filepath \
|
||||||
|
s3://get.influxdb.org/telegraf/$filename \
|
||||||
|
--acl public-read --region us-east-1
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Upload failed -- aborting".
|
echo "Upload failed -- aborting".
|
||||||
cleanup_exit 1
|
cleanup_exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Upload binaries
|
||||||
|
for b in ${BINS[*]}; do
|
||||||
|
bin = $GOPATH_INSTALL/bin/$b
|
||||||
|
zippedbin = $b_$VERSION_linux_x86_64.tar.gz
|
||||||
|
# Zip the binary
|
||||||
|
tar -zcf $TMP_WORK_DIR/$zippedbin $bin
|
||||||
|
echo "Uploading binary: $zippedbin to S3"
|
||||||
|
AWS_CONFIG_FILE=$AWS_FILE aws s3 cp $TMP_WORK_DIR/$zippedbin \
|
||||||
|
s3://get.influxdb.org/telegraf/$zippedbin \
|
||||||
|
--acl public-read --region us-east-1
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "Binary upload failed -- aborting".
|
||||||
|
cleanup_exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
else
|
else
|
||||||
echo "Not publishing packages to S3."
|
echo "Not publishing packages to S3."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue