From 3ed905dbccf1260428ed1299a57796472d005d01 Mon Sep 17 00:00:00 2001 From: norhan ali Date: Mon, 23 Sep 2024 13:52:52 +0300 Subject: [PATCH] make some changes to pipline --- .github/workflows/ci-cd.yml | 24 ++++++++++++------------ docker-compose.yml | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index c825e33..ce97259 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -80,21 +80,21 @@ jobs: context: ./frontend file: ./frontend/Dockerfile - run-docker-compose: - runs-on: ubuntu-latest - needs: - - build-backend - - build-frontend + # run-docker-compose: + # runs-on: ubuntu-latest + # needs: + # - build-backend + # - build-frontend - steps: + # steps: - - name: Checkout code - uses: actions/checkout@v4 + # - name: Checkout code + # uses: actions/checkout@v4 - - name: Set up environment variables - run: | - TAG=$(git describe --tags --abbrev=0) - echo "TAG=$TAG" > .env + # - name: Set up environment variables + # run: | + # TAG=$(git describe --tags --abbrev=0) + # echo "TAG=$TAG" > .env diff --git a/docker-compose.yml b/docker-compose.yml index 6e3878b..8c69960 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,7 +41,7 @@ services: backend: profiles: # will start only if `docker-compose --profile prod up` is used - prod - image: noraali/backend:${TAG} + image: noraali/backend:v1.4.1 command: poetry run uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload volumes: - .:/usr/src/app @@ -67,7 +67,7 @@ services: - ADMINER_DEFAULT_SERVER=database frontend: - image: noraali/frontend:${TAG} + image: noraali/frontend:v1.4.1 depends_on: - backend - database