From aa12ff726eaa3d307272a19d27d01601741fb1c0 Mon Sep 17 00:00:00 2001 From: paprykdev <58005447+paprykdev@users.noreply.github.com> Date: Sat, 16 Nov 2024 00:46:29 +0100 Subject: [PATCH] fix: update docker image workflow to use docker compose for starting and stopping services --- .github/workflows/docker-image.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 1133203..260d141 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -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