--- kind: pipeline type: docker name: default steps: - name: Build image: git.libreitalia.org/libreitalia/site-builder:1.0.1 commands: - cd /app - ./prepare.sh - python3 -m venv venv --system-site-packages - source venv/bin/activate - cd /drone/src - pip install -r requirements.txt - pelican /drone/src/content -o /drone/src/output -s /drone/src/publishconf.py - name: Deploy image: drillster/drone-rsync settings: hosts: from_secret: conference_hostname user: from_secret: conference_username port: from_secret: conference_port key: from_secret: conference_sshprivkey source: /drone/src/output target: /var/www/conference recursive: true script: - "sudo chown root:www-data -R /var/www/conference" trigger: event: - custom - push - pull_request