Action on gitea
Deploy stack su Proxmox / deploy (push) Failing after 9s

This commit is contained in:
Lorenzo Sanesi
2026-08-10 13:52:57 +02:00
parent 04ba3d541f
commit c034c59186
+25
View File
@@ -0,0 +1,25 @@
name: Deploy stack su Proxmox
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy via SSH (git pull + docker compose up -d --build)
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.DEPLOY_HOST }}
port: ${{ secrets.DEPLOY_PORT }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
script: |
set -e
cd "${{ secrets.DEPLOY_PATH }}"
git fetch origin master
git reset --hard origin/master
docker compose up -d --build --remove-orphans
docker image prune -f