generated from agiledev-students-fall2023/generic-project-repository
-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (36 loc) · 912 Bytes
/
deployment.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
31
32
33
34
35
36
37
38
39
40
41
name: Deploy Application
on:
workflow_dispatch:
push:
branches:
- cicd
pull_request:
branches:
- cicd
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Deploy React and Express App
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DROPLET_IP }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
username: ${{ secrets.SSH_USER }}
script: |
pwd
hostname
cd 4-final-project-group-bill-splitting-app
git pull origin master
# docker-compose down
# docker-compose up --build -d
# git pull
# cd front-end
# npm install
# npm start
# cd ../back-end
# npm install
# npm start
# echo 'Success'