2024-03-01 21:27:27 +01:00
|
|
|
---
|
2022-03-10 23:49:01 +01:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2024-03-01 23:42:54 +01:00
|
|
|
- name: Build
|
2024-03-02 00:36:41 +01:00
|
|
|
image: git.libreitalia.org/libreitalia/site-builder:debian-1.0.0
|
2024-03-01 21:33:50 +01:00
|
|
|
commands:
|
2024-03-02 00:26:06 +01:00
|
|
|
- . /app/venv/bin/activate
|
2024-03-02 00:04:58 +01:00
|
|
|
- pip install -r /drone/src/requirements.txt
|
2024-03-01 23:50:35 +01:00
|
|
|
- pelican /drone/src/content -o /drone/src/output -s /drone/src/publishconf.py
|
2024-03-01 23:42:54 +01:00
|
|
|
|
|
|
|
- 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"
|
2024-03-01 03:08:42 +01:00
|
|
|
|
|
|
|
trigger:
|
2024-03-01 22:37:45 +01:00
|
|
|
event:
|
|
|
|
- custom
|
|
|
|
- push
|
|
|
|
- pull_request
|