fix: update docker image workflow to use docker compose for starting and stopping services
This commit is contained in:
parent
9da95ee850
commit
aa12ff726e
8
.github/workflows/docker-image.yml
vendored
8
.github/workflows/docker-image.yml
vendored
@ -12,5 +12,9 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Build the Docker image
|
- name: Docker compose up
|
||||||
run: python3 scripts/start.py
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user