File tree 2 files changed +30
-2
lines changed
2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Backend CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ "main" ]
6
+
7
+ jobs :
8
+ build :
9
+ name : Build and Deploy
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Checkout Repository
14
+ uses : actions/checkout@v2
15
+
16
+ - name : Execute Remote SSH Commands
17
+ uses : appleboy/ssh-action@master
18
+ with :
19
+ host : ${{ secrets.HOST }}
20
+ username : ${{ secrets.USERNAME }}
21
+ password : ${{ secrets.PASSWORD }}
22
+ port : ${{ secrets.PORT }}
23
+ script : |
24
+ cd /home/backend/forwarder-script/
25
+ git reset --hard origin/main
26
+ git clean -fd
27
+ git pull origin main --force
28
+ bun install
29
+ bun run update
30
+ bun run restart
Original file line number Diff line number Diff line change 1
1
# forwarder-script
2
2
3
-
4
-
5
3
## Getting started
6
4
7
5
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
You can’t perform that action at this time.
0 commit comments