diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 2f7e0ac5..528ae4f3 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -42,6 +42,13 @@ jobs: container: image: catthehacker/ubuntu:act-latest steps: + - name: ๐Ÿงน Cleanup disk space + shell: bash + run: | + echo "๐Ÿงน Cleaning up dangling Docker images and stale build cache..." + docker system prune -f --filter "until=24h" + docker image prune -f --filter "dangling=true" + - name: Checkout repository uses: actions/checkout@v4 with: @@ -382,7 +389,7 @@ jobs: docker compose -p "$PROJECT_NAME" --env-file "$ENV_FILE" pull echo "โ†’ Starting containers..." docker compose -p "$PROJECT_NAME" --env-file "$ENV_FILE" up -d --remove-orphans - docker system prune -f --filter "until=168h" + docker system prune -f --filter "until=24h" echo "โ†’ Waiting 15s for warmup..." sleep 15 echo "โ†’ Container status:"