21 lines
593 B
YAML
21 lines
593 B
YAML
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 |