From be70d7fe5e1eb09fc2b3f6ad3a281f54fccfad8d Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sat, 2 Mar 2024 00:47:33 +0100 Subject: [PATCH] Pulizia cartelle. --- .drone.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1375efe..653a471 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,9 +8,9 @@ steps: image: git.libreitalia.org/libreitalia/site-builder:debian-1.0.0 commands: - . /app/venv/bin/activate - - pip install -r /drone/src/requirements.txt - - pelican /drone/src/content -o /drone/src/output -s /drone/src/publishconf.py - - cat /drone/src/output/index.html + - pip install -r requirements.txt + - pelican content -s publishconf.py + - cat output/index.html - name: Deploy image: drillster/drone-rsync @@ -23,14 +23,12 @@ steps: from_secret: conference_port key: from_secret: conference_sshprivkey - source: /drone/src/output + source: output target: /var/www/conference recursive: true script: - "sudo chown root:www-data -R /var/www/conference" -trigger: +triggers: event: - - custom - push - - pull_request