Skip to content

Commit

Permalink
make some changes to pipline
Browse files Browse the repository at this point in the history
  • Loading branch information
norali12 committed Sep 23, 2024
1 parent b20d967 commit 3ed905d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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



Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -67,7 +67,7 @@ services:
- ADMINER_DEFAULT_SERVER=database

frontend:
image: noraali/frontend:${TAG}
image: noraali/frontend:v1.4.1
depends_on:
- backend
- database
Expand Down

0 comments on commit 3ed905d

Please sign in to comment.