include env files in build process

This commit is contained in:
Ulf Gebhardt 2021-04-03 05:17:13 +02:00
parent ee4a63b606
commit dfe6f679b3
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
2 changed files with 8 additions and 11 deletions

View File

@ -194,10 +194,10 @@ jobs:
##########################################################################
# UNIT TESTS BACKEND #####################################################
##########################################################################
#- name: backend | copy env files webapp
# run: cp webapp/.env.template webapp/.env
#- name: backend | copy env files backend
# run: cp backend/.env.template backend/.env
- name: backend | copy env files webapp
run: cp webapp/.env.template webapp/.env
- name: backend | copy env files backend
run: cp backend/.env.template backend/.env
- name: backend | docker-compose
run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps neo4j backend
- name: backend | Initialize Database
@ -231,10 +231,10 @@ jobs:
##########################################################################
# UNIT TESTS WEBAPP #####################################################
##########################################################################
#- name: backend | copy env files webapp
# run: cp webapp/.env.template webapp/.env
#- name: backend | copy env files backend
# run: cp backend/.env.template backend/.env
- name: backend | copy env files webapp
run: cp webapp/.env.template webapp/.env
- name: backend | copy env files backend
run: cp backend/.env.template backend/.env
- name: backend | docker-compose
run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps webapp
- name: webapp | Unit tests

View File

@ -20,9 +20,6 @@ services:
target: test
environment:
- NODE_ENV="test"
- JWT_SECRET="b/&&7b78BF&fv/Vd"
- MAPBOX_TOKEN="pk.eyJ1IjoiYnVzZmFrdG9yIiwiYSI6ImNraDNiM3JxcDBhaWQydG1uczhpZWtpOW4ifQ.7TNRTO-o9aK1Y6MyW_Nd4g"
- PRIVATE_KEY_PASSPHRASE="a7dsf78sadg87ad87sfagsadg78"
########################################################
# NEO4J ################################################