mirror of
https://github.com/gosticks/web.git
synced 2026-12-03 17:51:39 +00:00
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:
+11
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user