refs #5739 fix: front does not depend on the back
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2024-01-17 08:18:03 +01:00
parent 5af6e2bfb9
commit da3fb0a13d
2 changed files with 3 additions and 2 deletions

View File

@ -14,8 +14,6 @@ services:
context: . context: .
dockerfile: front/Dockerfile dockerfile: front/Dockerfile
target: test target: test
depends_on:
- back
back: back:
image: back image: back
restart: always restart: always

View File

@ -1,3 +1,6 @@
if [ $1 = "front" ]; then
docker-compose -p salix-testing -f docker-compose.test.yml build back
fi
docker-compose -p salix-testing -f docker-compose.test.yml build $1 docker-compose -p salix-testing -f docker-compose.test.yml build $1
if [ $1 = "back" ]; then if [ $1 = "back" ]; then
docker-compose -p salix-testing -f docker-compose.test.yml build db docker-compose -p salix-testing -f docker-compose.test.yml build db