From 51d1b4de5dc5825b0217c956bb91d525bd1d0241 Mon Sep 17 00:00:00 2001 From: Carmine Savino Date: Thu, 22 Jan 2026 23:42:25 +0100 Subject: [PATCH] aggiunto container per il job di deploy e rinominato il passo di deploy per maggiore chiarezza --- .gitea/workflows/deploy.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 30d6044..229c279 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -4,15 +4,21 @@ on: [push] jobs: deploy: runs-on: ubuntu-latest + + container: + image: ghcr.io/catthehacker/ubuntu:act-20.04 + volumes: + - /var/run/docker.sock:/var/run/docker.sock + steps: - name: Checkout del codice uses: actions/checkout@v3 - - name: Docker Setup + - name: Deploy run: | - # Spegne i container vecchi e riaccende i nuovi (ricreandoli se l'immagine è cambiata) + # Ora il comando docker funzionerà! docker compose down --remove-orphans docker compose up -d --build - + - name: Pulizia - run: docker system prune -f # Rimuove immagini vecchie per non riempire il disco \ No newline at end of file + run: docker system prune -f \ No newline at end of file