Skip to content

Merge pull request #13 from team-dopamine/feature/HK-70-sign-up-page #9

Merge pull request #13 from team-dopamine/feature/HK-70-sign-up-page

Merge pull request #13 from team-dopamine/feature/HK-70-sign-up-page #9

Workflow file for this run

name: Continuous Deployment
on:
push:
branches: ['main']
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
tags:
description: 'Test scenario tags'
required: false
type: boolean
environment:
description: 'Environment to run tests against'
type: environment
required: false
permissions:
contents: read
jobs:
deploy:
# deploy라는 작업 정의
runs-on: ubuntu-24.04
#ubuntu-24.04 환경에서 실행되도록 지정
steps:
- name: Checkout PR
uses: actions/checkout@v3
with:
ref: ${{ github.event.push.base_ref }}
# 배포할 최신 코드(현재 브랜치 기준) 가져옴
- name: Deploy
uses: appleboy/[email protected]
# SSH 연결을 통해 원격 서버에 접속
with:
host: ${{ secrets.SERVER_HOST }}
port: ${{ secrets.SERVER_SSH_PORT }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_KEY }}
# GitHub Secrets에 저장된 환경 변수 가져옴
script: |
cd /home/ubuntu/husk-web
git pull origin main
npm install
nohup npm start &