fix: update docker image workflow to use docker compose for starting and stopping services

This commit is contained in:
patilk 2024-11-16 00:46:29 +01:00
parent 9da95ee850
commit aa12ff726e
Signed by: s500042
GPG Key ID: 1921AD722E7392EE

View File

@ -12,5 +12,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: python3 scripts/start.py
- name: Docker compose up
run: docker compose -f app/docker-compose.yaml up -d
- name: Start main.py
run: docker exec -it webscraper python main.py
- name: Docker compose down
run: docker compose -f app/docker-compose.yaml down