Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Commit 4301ae1

Browse files
Merge pull request #9 from alexandre-eymael/sprint5-cicd-deployment
Sprint5 cicd deployment
2 parents aca1499 + acc5668 commit 4301ae1

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/deploy.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: deploy
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: connect to VPS and deploy the model
16+
uses: appleboy/ssh-action@master
17+
with:
18+
host: ${{ secrets.VPS_IP }}
19+
username: ${{ secrets.VPS_USER }}
20+
password: ${{ secrets.VPS_PASSWORD }}
21+
script: |
22+
cd /${{ secrets.VPS_USER }}/HESSIAN
23+
git checkout .
24+
git pull
25+
cd deployment
26+
bash deploy.sh
27+
28+

0 commit comments

Comments
 (0)