This commit is contained in:
parent
507fd54388
commit
6fd9ce736d
1 changed files with 26 additions and 0 deletions
26
.forgejo/workflows/deploy.yml
Normal file
26
.forgejo/workflows/deploy.yml
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
name: Deploy Gateway
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Deploy to Infomaniak VM
|
||||||
|
uses: appleboy/ssh-action@v1.0.3
|
||||||
|
with:
|
||||||
|
host: api.poweron.swiss
|
||||||
|
username: ubuntu
|
||||||
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
script: |
|
||||||
|
cd /srv/gateway/current
|
||||||
|
git pull
|
||||||
|
source .venv/bin/activate
|
||||||
|
pip install -r requirements.txt --no-cache-dir
|
||||||
|
sudo systemctl restart gateway
|
||||||
Loading…
Reference in a new issue