conference-site/.drone.yml

35 lines
894 B
YAML
Raw Normal View History

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 21:33:50 +01:00
- name: Build and publish
2024-03-01 22:55:54 +01:00
image: git.libreitalia.org/libreitalia/site-builder:1.0.1
2024-03-01 21:33:50 +01:00
environment:
HOSTNAME:
from_secret: conference_hostname
USERNAME:
from_secret: conference_username
PORT:
from_secret: conference_port
SSH_PRIVATE_KEY:
from_secret: conference_sshprivkey
commands:
2024-03-01 22:02:52 +01:00
- cd /app
- ./prepare.sh
2024-03-01 21:33:50 +01:00
- python3 -m venv venv --system-site-packages
- source venv/bin/activate
2024-03-01 22:44:11 +01:00
- mkdir /app/output
2024-03-01 22:02:52 +01:00
- cd /drone/src
2024-03-01 21:33:50 +01:00
- pip install -r requirements.txt
2024-03-01 22:50:51 +01:00
- pelican /drone/src/content -o /drone/src/output -s /drone/src/publishconf.py
- rsync -rl /drone/src/output/ conference-remote
- ssh conference-remote sudo chown root:www-data -R /var/www/conference
trigger:
2024-03-01 22:37:45 +01:00
event:
- custom
- push
- pull_request