22 lines
519 B
YAML
22 lines
519 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: |
|
|
echo "Deploying with DOMAIN=${{ secrets.DOMAIN }}"
|
|
DOMAIN="${{ secrets.DOMAIN }}" docker compose down --remove-orphans
|
|
DOMAIN="${{ secrets.DOMAIN }}" docker compose up -d --build
|
|
|
|
- name: Pulizia
|
|
run: docker system prune -f |