32 lines
676 B
YAML
32 lines
676 B
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: Build and publish
|
|
image: git.libreitalia.org/libreitalia/site-builder:1.0.0
|
|
environment:
|
|
HOSTNAME:
|
|
from_secret: conference_hostname
|
|
USERNAME:
|
|
from_secret: conference_username
|
|
PORT:
|
|
from_secret: conference_port
|
|
SSH_PRIVATE_KEY:
|
|
from_secret: conference_sshprivkey
|
|
commands:
|
|
- cd /app
|
|
- ./prepare.sh
|
|
- python3 -m venv venv --system-site-packages
|
|
- source venv/bin/activate
|
|
- cd /drone/src
|
|
- pip install -r requirements.txt
|
|
- make rsync_upload
|
|
|
|
trigger:
|
|
event:
|
|
- custom
|
|
- push
|
|
- pull_request
|