Skip to content

feat: 배포 워크플로우 테스트1 #2

feat: 배포 워크플로우 테스트1

feat: 배포 워크플로우 테스트1 #2

Workflow file for this run

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: |
./test_sudo.sh # 배포 스크립트 실행