blob: 8b3b40f7e4495227520ce2c3c9f1dd6c20e6f2a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#!/bin/bash
set -e
# Deploy tar-files and checksums to the firehol website
if [ ! -f /tmp/ssh-key-loaded ]
then
echo "No ssh key decrypted - skipping deployment to website"
exit 0
fi
case "$TRAVIS_BRANCH" in
master|stable-*)
:
;;
*)
echo "Not on master or stable-* branch - skipping deployment to website"
exit 0
;;
esac
if [ "$TRAVIS_PULL_REQUEST" = "true" ]
then
echo "Building pull request - skipping deployment to website"
exit 0
fi
if [ "$TRAVIS_TAG" != "" ]
then
echo "Building tag - skipping deployment to website"
exit 0
fi
if [ "$TRAVIS_OS_NAME" != "linux" ]
then
echo "Building non-linux version - skipping deployment to website"
exit 0
fi
if [ "$CC" != "gcc" ]
then
echo "Building non-gcc version - skipping deployment to website"
exit 0
fi
ssh-keyscan -H firehol.org >> ~/.ssh/known_hosts
ssh travis@firehol.org mkdir -p uploads/netdata/$TRAVIS_BRANCH/
scp -p *.tar.gz travis@firehol.org:uploads/netdata/$TRAVIS_BRANCH/
scp -p *.tar.gz.sha travis@firehol.org:uploads/netdata/$TRAVIS_BRANCH/
scp -p *.tar.gz.asc travis@firehol.org:uploads/netdata/$TRAVIS_BRANCH/
scp -p *.gz.run travis@firehol.org:uploads/netdata/$TRAVIS_BRANCH/
scp -p *.gz.run.sha travis@firehol.org:uploads/netdata/$TRAVIS_BRANCH/
scp -p *.gz.run.asc travis@firehol.org:uploads/netdata/$TRAVIS_BRANCH/
ssh travis@firehol.org touch uploads/netdata/$TRAVIS_BRANCH/complete.txt
|