Skip to content

Commit

Permalink
run docker in background
Browse files Browse the repository at this point in the history
Signed-off-by: Nischay Ram Mamidi <NischayPro@gmail.com>
  • Loading branch information
Nischay-Pro committed Sep 14, 2023
1 parent be1f3c3 commit ace050f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ jobs:
- name: Export SQLALCHEMY_DATABASE_URI
run: echo "SQLALCHEMY_DATABASE_URI=postgresql://flexmeasures_test:flexmeasures_test@127.0.0.1:5432/flexmeasures_test"
>> .env
- name: Keep running flexmeasures container in background
run: docker run -t -d --env-file .env --network=host --name flexmeasures flexmeasures:latest
- name: Execute database upgrade
run: docker run -t -d --env-file .env --network=host --name flexmeasures flexmeasures:latest flexmeasures
run: docker exec --env-file .env flexmeasures flexmeasures:latest flexmeasures
db upgrade
- name: Add toy user
run: docker exec --env-file .env flexmeasures flexmeasures
Expand Down

0 comments on commit ace050f

Please sign in to comment.