Skip to content

Merge pull request #286 from boostcampwm-2024/dev #11

Merge pull request #286 from boostcampwm-2024/dev

Merge pull request #286 from boostcampwm-2024/dev #11

Workflow file for this run

name: Deploy to Ncloud Server
on:
push:
branches:
- main
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: |
echo ${{ secrets.REMOTE_SSH_PASSWORD }} | sudo -S echo deploy start!
./deploy.sh # 배포 스크립트 실행