forked from grafana-cold-storage/metrictank
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·21 lines (18 loc) · 839 Bytes
/
Copy pathdeploy.sh
File metadata and controls
executable file
·21 lines (18 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
set -x
# Find the directory we exist within
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
ls -l ${DIR}/../build/*.deb
if [ -z ${PACKAGECLOUD_REPO} ] ; then
echo "The environment variable PACKAGECLOUD_REPO must be set."
exit 1
fi
# Ubuntu 14.04, 16.04, debian 7 (wheezy) & debian 8 (jessie)
package_cloud push ${PACKAGECLOUD_REPO}/ubuntu/trusty ${DIR}/../build/upstart/*.deb
package_cloud push ${PACKAGECLOUD_REPO}/ubuntu/xenial ${DIR}/../build/systemd/*.deb
package_cloud push ${PACKAGECLOUD_REPO}/debian/wheezy ${DIR}/../build/sysvinit/*.deb
package_cloud push ${PACKAGECLOUD_REPO}/debian/jessie ${DIR}/../build/systemd/*.deb
# CentOS 6
package_cloud push ${PACKAGECLOUD_REPO}/el/6 ${DIR}/../build/upstart-0.6.5/*rpm
# CentOS 7
package_cloud push ${PACKAGECLOUD_REPO}/el/7 ${DIR}/../build/systemd-centos7/*rpm