mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
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:
parent
4e816d9020
commit
94eea091de
@ -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
|
||||||
|
|||||||
8
docker-compose.travis.yml
Normal file
8
docker-compose.travis.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
version: "3.7"
|
||||||
|
|
||||||
|
services:
|
||||||
|
backend:
|
||||||
|
image: humanconnection/nitro-backend:builder
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
target: builder
|
||||||
Loading…
x
Reference in New Issue
Block a user