22 lines
443 B
YAML
22 lines
443 B
YAML
name: Deploy
|
|
on: [push]
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
image: ghcr.io/catthehacker/ubuntu:act-20.04
|
|
|
|
steps:
|
|
- name: Checkout del codice
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Deploy
|
|
run: |
|
|
# Ora il comando docker funzionerà!
|
|
docker compose down --remove-orphans
|
|
docker compose up -d --build
|
|
|
|
- name: Pulizia
|
|
run: docker system prune -f |