From 4c4df7335a7e56bf124eb7d5222055d6101df985 Mon Sep 17 00:00:00 2001 From: roberto Date: Mon, 2 Mar 2026 17:41:23 +0100 Subject: [PATCH] auto deploy --- .gitea/workflows/deploy.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..4d100f6 --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -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 \ No newline at end of file