conference-site/.drone.yml

36 lines
819 B
YAML
Raw Normal View History

2024-03-01 20:27:27 +00:00
---
2022-03-10 22:49:01 +00:00
kind: pipeline
type: docker
name: default
steps:
- name: Build
2024-03-01 23:04:58 +00:00
image: git.libreitalia.org/libreitalia/site-builder:1.0.2
2024-03-01 20:33:50 +00:00
commands:
2024-03-01 23:04:58 +00:00
- source /app/venv/bin/activate
- pip install -r /drone/src/requirements.txt
2024-03-01 22:50:35 +00:00
- 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:
2024-03-01 21:37:45 +00:00
event:
- custom
- push
- pull_request