Fix build script

This commit is contained in:
Gabriel Augendre 2020-11-10 15:48:51 +01:00
parent 36c8a83018
commit b6b9d81081
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -17,7 +17,7 @@ tasks:
- build_and_test: | - build_and_test: |
docker login rg.fr-par.scw.cloud/crocmagnon -u nologin --password-stdin < .docker-secret docker login rg.fr-par.scw.cloud/crocmagnon -u nologin --password-stdin < .docker-secret
cd blog cd blog
docker pull $BLOG_IMAGE || true docker pull $BLOG_LATEST || true
docker build --pull --cache-from $BLOG_LATEST -t $BLOG_LATEST -f Dockerfile . docker build --pull --cache-from $BLOG_LATEST -t $BLOG_LATEST -f Dockerfile .
docker build -t $BLOG_TESTS -f tests.Dockerfile . docker build -t $BLOG_TESTS -f tests.Dockerfile .
docker run --rm -t $BLOG_TESTS /app/docker/runtests.sh docker run --rm -t $BLOG_TESTS /app/docker/runtests.sh