This commit is contained in:
21
.gitea/workflows/deploy.yaml
Normal file
21
.gitea/workflows/deploy.yaml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
name: Deploy to Proxmox Docker
|
||||||
|
run-name: Deploying ${{ gitea.sha }}
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main # O il nome del tuo branch principale
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Deploy:
|
||||||
|
runs-on: ubuntu-latest # Questo dipende dalle label che hai dato al tuo act_runner
|
||||||
|
steps:
|
||||||
|
- name: Deploying via SSH
|
||||||
|
uses: appleboy/ssh-action@v1.0.0
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.SSH_HOST }}
|
||||||
|
username: ${{ secrets.SSH_USER }}
|
||||||
|
key: ${{ secrets.SSH_KEY }}
|
||||||
|
script: |
|
||||||
|
cd /opt/adiuva-api
|
||||||
|
git pull origin main
|
||||||
|
docker compose up -d --build
|
||||||
Reference in New Issue
Block a user