Upload builds to ftl.pi-hole.net

On master, the builds have fake data and are configured to be deployed
to web.pi-hole.io. On other branches, they are build without fake data.

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12
2018-05-26 23:05:00 -04:00
parent 5f17b6268d
commit c716773bae
+11 -2
View File
@@ -10,8 +10,17 @@ env:
script:
- npm run gulp sass
- rm public/fakeAPI/.gitignore # Make sure that the fakeAPI data is deployed
- npm run build-fake
- echo "web.pi-hole.io" > build/CNAME
- 'if [ "$TRAVIS_BRANCH" = "master" ]; then
npm run build-fake
echo "web.pi-hole.io" > build/CNAME;
else
npm run build
fi'
- tar -czvf pihole-web.tar.gz build
- wget https://ftl.pi-hole.net:8080/FTL-client
- chmod +x ./FTL-client
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then ./FTL-client "${TRAVIS_BRANCH}" pihole-web.tar.gz "${TRAVIS_SECRET}"; fi'
- rm ./FTL-client
deploy:
provider: pages