Skip to content

Commit

Permalink
checkout different branch for each job
Browse files Browse the repository at this point in the history
  • Loading branch information
norali12 committed Sep 18, 2024
1 parent df04302 commit fd04051
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ 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 Backend Image
uses: docker/build-push-action@v6
with:
push: true
tags: noraali/backend:${{ env.TAG }}
tags: noraali/backend:${{ github.ref }}
context: . #./backend
file: ./Dockerfile #./backend/Dockerfile

Expand All @@ -57,14 +57,14 @@ 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: noraali/frontend:${{ env.TAG }}
tags: noraali/frontend:${{ github.ref }}
context: . #./frontend
file: ./Dockerfile #./frontend/Dockerfile

Expand Down

0 comments on commit fd04051

Please sign in to comment.