diff --git a/.github/workflows/docker_workflow.yml b/.github/workflows/docker_workflow.yml index b838cfb4..cd56503a 100644 --- a/.github/workflows/docker_workflow.yml +++ b/.github/workflows/docker_workflow.yml @@ -5,8 +5,10 @@ env: BASE_URL: https://opensource-demo.orangehrmlive.com HRM_USER_NAME: ${{ secrets.HRM_USER_NAME }} HRM_PASSWORD: ${{ secrets.HRM_PASSWORD }} + PROJECT_LOCATION: ${{ github.workspace }} USING_DOCKER: True + on: schedule: - cron: '30 22 * * *' @@ -78,6 +80,9 @@ jobs: with: python-version: "3.9" + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker id: docker_env_setup if: steps.validate_input.outcome == 'success' @@ -87,7 +92,7 @@ jobs: id: docker_compose if: steps.docker_env_setup.outcome == 'success' run: | - docker-compose -f docker-compose.yml up -d + docker-compose -f '/home/runner/work/docker-compose.yaml' up -d - name: Wait for services to start run: sleep 30 @@ -162,7 +167,7 @@ jobs: id: docker_compose if: steps.docker_env_setup.outcome == 'success' run: | - docker-compose -f ./configs/docker-compose.yml up -d + sudo docker compose --file docker-compose.yaml up -d - name: Wait for services to start run: sleep 30 diff --git a/configs/docker-compose.yml b/docker-compose.yaml similarity index 98% rename from configs/docker-compose.yml rename to docker-compose.yaml index a00adbd9..fbbaf36c 100644 --- a/configs/docker-compose.yml +++ b/docker-compose.yaml @@ -1,7 +1,6 @@ # To execute this docker-compose yml file use `docker-compose -f docker-compose.yml up` # Add the `-d` flag at the end for detached execution # To stop the execution, hit Ctrl+C, and then `docker-compose -f docker-compose.yml down` -version: "3" services: chrome: image: selenium/node-chrome:4.18.0-20240220