Skip to content

Commit

Permalink
feat: 자동 배포 스크립트 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
rladydgn committed Dec 5, 2023
1 parent 5ef8c64 commit b7c18dc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: be-deploy

on:
push:
branches:
- be-dev

jobs:
build:
runs-on: ubuntu-18.04
steps:
- name: SSH-be-deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.NCP_HOST }}
username: ${{ secrets.NCP_USERNAME }}
password: ${{ secrets.NCP_PASSWORD }}
port: ${{ secrets.NCP_PORT }}
script: |
cd /home/be/web12-algo-with-me/
git pull
cd be
./build-all
./run-all-background

0 comments on commit b7c18dc

Please sign in to comment.