Skip to content

Commit

Permalink
fix: deploy script 실행 코드 self-hosted 방식으로 변경 #22
Browse files Browse the repository at this point in the history
  • Loading branch information
PgmJun authored Jul 18, 2024
1 parent 7bc6f8d commit c81a364
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/be-cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,5 @@ jobs:
deploy:
runs-on: [self-hosted, linux, ARM64] # Self hosted runner 사용

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup SSH key
run: |
echo "${{ secrets.EC2_DEV_SSH_KEY }}" > private_key.pem
chmod 600 private_key.pem
- name: Deploy to EC2
run: |
ssh -i private_key.pem -o StrictHostKeyChecking=no ${{ secrets.EC2_DEV_USERNAME }}@${{ secrets.EC2_DEV_IP }} sh ~/deploy-script-dev.sh
- name: Cleanup
run: |
rm -f private_key.pem
run: sudo sh ~/deploy-script-dev.sh

0 comments on commit c81a364

Please sign in to comment.