-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |