Skip to content

Commit

Permalink
specify the dockerfile for each image & specifythe pushing branch for…
Browse files Browse the repository at this point in the history
… each backend image and frontend image 5
  • Loading branch information
norali12 committed Sep 17, 2024
1 parent a66e421 commit 87d6a5e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: echo "TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV

- name: Build and Push Backend Image
if: github.ref == 'refs/heads/CI-CD-pipline'
## if: github.ref == 'refs/heads/CI-CD-pipline'
# main-backend
uses: docker/build-push-action@v6
with:
Expand All @@ -36,14 +36,14 @@ jobs:
context: .
file: ./Dockerfile

- name: Build and Push Frontend Image
if: github.ref == 'refs/heads/CI-CD-pipline'
# main-frontend
uses: docker/build-push-action@v6
with:
push: true
tags: noraali/front_end_project:${{ env.TAG }}
context: ./templates #frontend folder
file: ./templates/Dockerfile
# - name: Build and Push Frontend Image
# if: github.ref == 'refs/heads/CI-CD-pipline'
# # main-frontend
# uses: docker/build-push-action@v6
# with:
# push: true
# tags: noraali/front_end_project:${{ env.TAG }}
# context: ./templates #frontend folder
# file: ./templates/Dockerfile


0 comments on commit 87d6a5e

Please sign in to comment.