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