Ensure stage builder is used for testing

But avoid synced volumes, otherwise the deployment will crash because
Travis cannot clean up files just before entering the deployment.
This commit is contained in:
Robert Schäfer 2018-12-14 23:20:44 +01:00
parent 4e816d9020
commit 94eea091de
2 changed files with 9 additions and 1 deletions

View File

@ -19,7 +19,7 @@ before_install:
install: install:
- docker build --build-arg BUILD_COMMIT=$TRAVIS_COMMIT --target production -t humanconnection/nitro-backend:latest . - docker build --build-arg BUILD_COMMIT=$TRAVIS_COMMIT --target production -t humanconnection/nitro-backend:latest .
- docker-compose -f docker-compose.yml up -d - docker-compose -f docker-compose.yml -f docker-compose.travis.yml up -d
script: script:
- docker-compose exec backend yarn run lint - docker-compose exec backend yarn run lint

View File

@ -0,0 +1,8 @@
version: "3.7"
services:
backend:
image: humanconnection/nitro-backend:builder
build:
context: .
target: builder