Skip to content

Commit

Permalink
chore: fix build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
zeus6768 committed Oct 17, 2024
1 parent 40c39e6 commit 600fb3b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/backend_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,36 @@ jobs:
- name: 배포
working-directory: ${{ secrets.PROJECT_PATH }}
run: ${{ secrets.RUN_SERVER }}

deploy_production:
needs: build
environment: Production
strategy:
matrix:
runners: [ prod_a, prod_b ]
runs-on:
- spring
- ${{ matrix.runners }}
steps:
- name: 체크아웃
uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.PRIVATE_REPO_ACCESS }}

- name: Compose 설정 복사
run: ${{ secrets.RUN_COPY_COMPOSE }}

- name: Compose 환경변수 주입
working-directory: ${{ secrets.PROJECT_PATH }}
run: ${{ secrets.ENV_VARIABLES }}

- name: Artifact 다운로드
uses: actions/download-artifact@v4
with:
name: code-zap
path: ${{ secrets.SPRING_PATH }}

- name: 배포
working-directory: ${{ secrets.PROJECT_PATH }}
run: ${{ secrets.RUN_SERVER }}

0 comments on commit 600fb3b

Please sign in to comment.