generated from codersforcauses/beginner-2023S
-
-
Notifications
You must be signed in to change notification settings - Fork 2
29 lines (28 loc) · 839 Bytes
/
main.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
name: deploy
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: dockerrebuildandupdatethingo
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
echo "epik deployment script!!1!@2!"
docker stop pinpoint
docker rm pinpoint
echo "downtime :("
cd /root/beginner-2023summer-g4
git pull origin main
echo "updated!!!!!!"
docker build -t perthpinpoint .
docker run --mount type=bind,source="$(pwd)/app/core",target=/pinpoint/app/core -dp 0.0.0.0:80:8080 --name "pinpoint" perthpinpoint
echo "rebuilt +done"