-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (29 loc) Β· 980 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Try Deploy
on:
push:
branches:
- dev
workflow_dispatch:
concurrency:
# κ·Έλ£Ήμ prμ head_refλ‘ μ μ
group: 'try-deploy'
# ν΄λΉ prμμ μλ‘μ΄ μν¬νλ‘μ°κ° μ€νλ κ²½μ°, μ΄μ μ μν¬νλ‘μ°κ° μλ€λ©΄ μ΄μ μν¬νλ‘μ°λ₯Ό μ·¨μνλλ‘ νλ€.
cancel-in-progress: true
jobs:
try-deploy:
runs-on: ubuntu-latest
steps:
- name: deploy
uses: appleboy/[email protected]
with:
host: ${{ secrets.SERVER_HOST }}
port: ${{ secrets.SERVER_SSH_PORT }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
script: |
export GIT_PROJECT_PATH=https://github.com/boostcampwm-2022/web22-BooCrum.git
export PROJECT_DIR_NAME=BooCrum
export BRANCH_NAME=dev
export FRONTEND_WORKING_DIR=frontend
export BACKEND_WORKING_DIR=backend
sh ~/scripts/deploy.sh