From d522675f60fbc2794a01c91ddd8e46ae6d9b36b8 Mon Sep 17 00:00:00 2001 From: Ani Hovhannisyan Date: Thu, 29 Aug 2024 16:32:17 +0100 Subject: [PATCH] Fixing github workflow docker-compose fail #100 --- .github/workflows/ci_on_docker.yml | 6 +++--- README.md | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci_on_docker.yml b/.github/workflows/ci_on_docker.yml index 5d25a80..98159c2 100644 --- a/.github/workflows/ci_on_docker.yml +++ b/.github/workflows/ci_on_docker.yml @@ -12,10 +12,10 @@ jobs: uses: actions/checkout@v2 # -d でバックグラウンド実行 - name: docker build - run: docker-compose up -d + run: docker compose up -d # -Tは no TTY への対策 - name: frontend test - run: docker-compose exec -T -e CI=true frontend yarn test + run: docker compose exec -T -e CI=true frontend yarn test # -Tは no TTY への対策 - name: backend test - run: docker-compose exec -T backend pytest + run: docker compose exec -T backend pytest diff --git a/README.md b/README.md index ed2126d..92b32a4 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Where Controllers are considered to be in backend, and Views are in frontend. 4. Run Docker Compose. ```sh - docker-compose up + docker-compose up (or on Linux docker compose up) ``` This will start the frontend and backend server automatically. @@ -67,7 +67,8 @@ Where Controllers are considered to be in backend, and Views are in frontend. 4. Run Docker Compose. ```sh - docker-compose up + docker-compose up (or on Linux docker compose up) + ``` This will start the frontend and backend server automatically.