aggiunto container per il job di deploy e rinominato il passo di deploy per maggiore chiarezza
Some checks failed
Deploy / deploy (push) Failing after 55s
Some checks failed
Deploy / deploy (push) Failing after 55s
This commit is contained in:
@@ -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
|
||||
run: docker system prune -f
|
||||
Reference in New Issue
Block a user