2024-03-01 20:27:27 +00:00
|
|
|
---
|
2022-03-10 22:49:01 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2024-03-01 22:42:54 +00:00
|
|
|
- name: Build
|
2024-03-01 23:36:41 +00:00
|
|
|
image: git.libreitalia.org/libreitalia/site-builder:debian-1.0.0
|
2024-03-01 20:33:50 +00:00
|
|
|
commands:
|
2024-03-01 23:26:06 +00:00
|
|
|
- . /app/venv/bin/activate
|
2024-03-01 23:47:33 +00:00
|
|
|
- pip install -r requirements.txt
|
|
|
|
- pelican content -s publishconf.py
|
|
|
|
- cat output/index.html
|
2024-03-01 22:42:54 +00: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
|
2024-03-01 23:48:44 +00:00
|
|
|
source: output/
|
2024-03-01 22:42:54 +00:00
|
|
|
target: /var/www/conference
|
|
|
|
recursive: true
|
|
|
|
script:
|
|
|
|
- "sudo chown root:www-data -R /var/www/conference"
|
2024-03-01 02:08:42 +00:00
|
|
|
|
2024-03-01 23:47:33 +00:00
|
|
|
triggers:
|
2024-03-01 21:37:45 +00:00
|
|
|
event:
|
|
|
|
- push
|