Skip to content

Commit

Permalink
fix: matrix 적용 실패 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
fromitive committed Oct 24, 2024
1 parent 1a645f9 commit e0db5cf
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/backend-prod-ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ jobs:
deploy-new-container:
needs: build-and-test
runs-on: [ self-hosted, prod-a, prod-b ]
strategy:
matrix:
runner: [prod-a, prod-b] # 두 서버 환경에서 병렬로 배포
runs-on: [self-hosted, ${{ matrix.runner }}]
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -75,8 +78,10 @@ jobs:

switch-new-container:
needs: deploy-new-container
runs-on: [ self-hosted, prod-a, prod-b ]

strategy:
matrix:
runner: [prod-a, prod-b] # 두 서버 환경에서 병렬로 배포
runs-on: [self-hosted, ${{ matrix.runner }}]
steps:
- name: Switch from old to new container
run: |
Expand Down

0 comments on commit e0db5cf

Please sign in to comment.