Verify download, fix invidious file permission (#949)

* Fix docker
This commit is contained in:
tleydxdy
2020-05-01 09:35:34 +08:00
committed by GitHub
parent 9d23cf33fd
commit bd2c7e3bb9
2 changed files with 16 additions and 20 deletions

View File

@@ -27,8 +27,5 @@ jobs:
install:
- docker-compose build
script:
- docker-compose up
- sleep 15 # Wait for cluster to become ready, TODO: do not sleep
- HEADERS="$(curl -I -s http://localhost:3000/)"
- STATUS="$(echo $HEADERS | head -n1)"
- if [[ "$STATUS" != *"200 OK"* ]]; then echo "$HEADERS"; exit 1; fi
- docker-compose up -d
- while curl -Isf http://localhost:3000; do sleep 1; done