Skip to content

Commit

Permalink
checkout different branch for each job 8
Browse files Browse the repository at this point in the history
  • Loading branch information
norali12 committed Sep 18, 2024
1 parent bb9d942 commit 558a1b0
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
steps:
- name: Checkout Initial Branch
uses: actions/checkout@v4
# with:
# ref: CI-CD-pipline
with:
ref: CI-CD-pipline

- name: Switch to Backend Branch
run: |
git fetch origin
git checkout CI-CD-pipline
# - name: Switch to Backend Branch
# run: |
# git fetch origin
# git checkout CI-CD-pipline
# main-backend

- name: Log in to Docker Hub
Expand Down Expand Up @@ -47,13 +47,13 @@ jobs:
steps:
- name: Checkout Initial Branch
uses: actions/checkout@v4
# with:
# ref: CI-CD-pipline
with:
ref: CI-CD-pipline

- name: Switch to frontend Branch
run: |
git fetch origin
git checkout CI-CD-pipline
# - name: Switch to frontend Branch
# run: |
# git fetch origin
# git checkout CI-CD-pipline
# main-frontend

- name: Log in to Docker Hub
Expand All @@ -80,6 +80,5 @@ jobs:
# - main-backend
# - main-frontend

# if: github.ref == 'refs/heads/CI-CD-pipline'
# main-backend


0 comments on commit 558a1b0

Please sign in to comment.