35 lines
755 B
YAML
35 lines
755 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: Build
|
|
image: git.libreitalia.org/libreitalia/site-builder:debian-1.0.0
|
|
commands:
|
|
- . /app/venv/bin/activate
|
|
- pip install -r requirements.txt
|
|
- pelican content -s publishconf.py
|
|
- cat output/index.html
|
|
|
|
- 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: output
|
|
target: /var/www/conference
|
|
recursive: true
|
|
script:
|
|
- "sudo chown root:www-data -R /var/www/conference"
|
|
|
|
triggers:
|
|
event:
|
|
- push
|