Skip to content

Commit

Permalink
feat: 2개의 EC2로 자동 배포하도록 스크립트를 변경합니다. (#338)
Browse files Browse the repository at this point in the history
* remove: 사용하지 않는 consumer 패키지 삭제

* chore: 2개의 EC2로 배포하도록 변경

* feat: 영수증 생성 날짜 auditing 기능 추가 및 내림차순 정렬

* fix: 잘못된 어노테이션 수정 (CreatedBy -> CreatedDate)
  • Loading branch information
HiiWee authored Aug 29, 2024
1 parent 5bd754c commit 423996b
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 350 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/dev_code_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:
- name: Add SSH fixkey to known hosts
run: |
mkdir -p ~/.ssh
ssh-keyscan ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
ssh-keyscan ${{ secrets.DEV_ONE_FIRST_SSH_HOST }} >> ~/.ssh/known_hosts
ssh-keyscan ${{ secrets.DEV_ONE_SECOND_SSH_HOST }} >> ~/.ssh/known_hosts
- name: Create SSH key
run: |
Expand All @@ -50,5 +51,7 @@ jobs:
env:
ACTIVE_PROFILE: dev
run: |
scp -i private_key ./build/libs/*.jar ${{ secrets.SSH_FULL_INFO }}:~/
ssh -i private_key ${{ secrets.SSH_FULL_INFO }} "sudo bash ${{ secrets.SCRIPT_PATH }} $ACTIVE_PROFILE"
scp -i private_key ./build/libs/*.jar ${{ secrets.DEV_ONE_FIRST_SSH_FULL_INFO }}:~/
scp -i private_key ./build/libs/*.jar ${{ secrets.DEV_ONE_SECOND_SSH_FULL_INFO }}:~/
ssh -i private_key ${{ secrets.DEV_ONE_FIRST_SSH_FULL_INFO }} "sudo bash ${{ secrets.SCRIPT_PATH }} $ACTIVE_PROFILE"
ssh -i private_key ${{ secrets.DEV_ONE_SECOND_SSH_FULL_INFO }} "sudo bash ${{ secrets.SCRIPT_PATH }} $ACTIVE_PROFILE"

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 423996b

Please sign in to comment.