Skip to content

Commit

Permalink
change tags to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
norali12 committed Sep 25, 2024
1 parent 07ef452 commit 86101ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ on:
push:
tags:
- v*
- latest

jobs:
build-backend:
runs-on: ubuntu-latest
if: startsWith(github.ref_name, 'v')
# github.ref_name == 'norhan-updates'
# if:startsWith(github.ref_name, 'v')


steps:
- name: Checkout Initial Branch
Expand Down Expand Up @@ -41,15 +42,15 @@ jobs:
uses: docker/build-push-action@v6
with:
push: true
tags: tactful/microcentral-backend:${{ env.TAG }}
tags: tactful/microcentral-backend:latest
context: .
file: ./Dockerfile


build-frontend:
runs-on: ubuntu-latest
if: startsWith(github.ref_name, 'v')
#if:github.ref_name == 'CI-CD-pipline'
# if:startsWith(github.ref_name, 'v')


steps:
- name: Checkout Initial Branch
Expand All @@ -76,7 +77,8 @@ jobs:
uses: docker/build-push-action@v6
with:
push: true
tags: tactful/microcentral-frontend:${{ env.TAG }}
tags: tactful/microcentral-frontend:latest
#${{env.TAG}}
context: ./frontend
file: ./frontend/Dockerfile

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: tactful/microcentral-backend:v1.5.1
image: tactful/microcentral-backend:latest
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:v1.5.1
image: tactful/microcentral-frontend:latest
depends_on:
- backend
- database
Expand Down

0 comments on commit 86101ef

Please sign in to comment.