Skip to content

Commit

Permalink
feat: 배포 워크플로우 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
moozeh committed Nov 8, 2024
1 parent ef0ced4 commit ae8866c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy to Ncloud Server
on:
push:
branches:
#- main
- chore/github-action
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected] # workflow 내에서 repo의 최신 코드를 checkout
- name: Deploy to Ncloud via SSH
uses: appleboy/ssh-action@master # GitHub Actions에서 SSH로 서버에 접근
with:
host: ${{ secrets.REMOTE_SSH_HOST }}
username: ${{ secrets.REMOTE_SSH_USERNAME }}
key: ${{ secrets.REMOTE_SSH_KEY }}
passphrase: ${{ secrets.REMOTE_SSH_PASSPHRASE }}
password: ${{ secrets.REMOTE_SSH_PASSWORD }}
port: ${{ secrets.REMOTE_SSH_PORT }}
script: |
#./deploy.sh # 배포 스크립트 실행
echo "test complete!" > test.log

0 comments on commit ae8866c

Please sign in to comment.