Skip to content

Commit

Permalink
chore: cd test를 위한 브랜치 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
zeus6768 committed Oct 15, 2024
1 parent dcb147c commit 050ee39
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions .github/workflows/backend_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
- dev/be
- infra/744-submodule

jobs:
build:
Expand Down Expand Up @@ -59,33 +60,3 @@ jobs:
- name: 배포
working-directory: ${{ secrets.PROJECT_PATH }}
run: ${{ secrets.RUN_SERVER }}

deploy_production:
needs: build
environment: production
runs-on:
- prod_a
- prod_b
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: echo ${{ secrets.ENV_VARIABLES }} > .env

- 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 050ee39

Please sign in to comment.