From c034c591860722551ae8637e0a7b385893d0e96b Mon Sep 17 00:00:00 2001 From: Lorenzo Sanesi Date: Mon, 10 Aug 2026 13:52:57 +0200 Subject: [PATCH] Action on gitea --- .gitea/workflows/deploy.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..d3de701 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -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