Skip to content

Commit

Permalink
Merge branch 'CI-CD-pipline' of https://github.com/tactful-ai/microce…
Browse files Browse the repository at this point in the history
…ntral into CI-CD-pipline
  • Loading branch information
norali12 committed Sep 25, 2024
2 parents fafb6dd + 9d7b7bc commit 2194609
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN}}

# - name: Extract the latest Git tag
# run: |
# echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
# echo $TAG
- name: Extract the latest Git tag
run: |
echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
echo $TAG
- name: Build and Push Backend Image
uses: docker/build-push-action@v6
with:
push: true
tags: tactful/microcentral-backend:latest
tags: tactful/microcentral-backend:${{ env.TAG }}
context: .
file: ./Dockerfile

Expand Down Expand Up @@ -70,15 +70,15 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN}}

# - name: Extract the latest Git tag
# run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Extract the latest Git tag
run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV

- name: Build and Push frontend Image
uses: docker/build-push-action@v6
with:
push: true
tags: tactful/microcentral-frontend:latest
#${{env.TAG}}
tags: tactful/microcentral-frontend:${{ env.TAG }}

context: ./frontend
file: ./frontend/Dockerfile

Expand Down
6 changes: 3 additions & 3 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: tactful/microcentral-backend:latest
image: tactful/microcentral-backend:v1.5.8
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: tactful/microcentral-frontend:latest
image: tactful/microcentral-frontend:v1.5.8
depends_on:
- backend
- database
Expand All @@ -82,4 +82,4 @@ networks:
driver: bridge

volumes:
postgres_data:
postgres_data:

0 comments on commit 2194609

Please sign in to comment.