forked from boostcamp-2020/Project12-C-Slack-Web
-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (27 loc) · 855 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: deploy
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: master
jobs:
build:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: Deploy backend server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.BACKEND_HOST }}
username: ${{ secrets.BACKEND_USERNAME }}
password: ${{ secrets.BACKEND_PASSWORD }}
script: |
bash deploy-backend.sh
- name: Deploy frontend server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.FRONTEND_HOST }}
username: ${{ secrets.FRONTEND_USERNAME }}
password: ${{ secrets.FRONTEND_PASSWORD }}
script: |
bash deploy-frontend.sh