Skip to content

Commit

Permalink
cicd 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
HoeSeong123 committed Sep 24, 2024
1 parent adc0bf1 commit 6d29567
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/backend_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,29 @@ jobs:
name: code-zap-jar
path: backend/build/libs/*.jar

deploy:
deploy_instance_a:
needs: build
runs-on:
- self-hosted
- spring
- ${{ contains(github.ref, 'main') && 'production' || 'develop' }}
- ${{ contains(github.ref, 'main') && 'develop' || 'prod_a' }}
steps:
- name: Artifact 다운로드
uses: actions/download-artifact@v4
with:
name: code-zap-jar
path: ~/zap/spring
- name: 배포 스크립트 실행
run: |
cd ~/zap/spring
mv *.jar zap1234.jar
# docker compose restart
deploy_instance_b:
needs: build
runs-on:
- self-hosted
- spring
- ${{ contains(github.ref, 'main') && 'develop' || 'prod_b' }}
steps:
- name: Artifact 다운로드
uses: actions/download-artifact@v4
Expand All @@ -48,6 +65,5 @@ jobs:
- name: 배포 스크립트 실행
run: |
cd ~/zap/spring
unzip -o code-zap-jar.zip
mv *.jar zap1234.jar
# docker compose restart

0 comments on commit 6d29567

Please sign in to comment.