27 lines
429 B
YAML
27 lines
429 B
YAML
|
---
|
||
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: Deploy
|
||
|
|
||
|
steps:
|
||
|
- name: build
|
||
|
image: python:latest
|
||
|
volumes:
|
||
|
- name: blog-path
|
||
|
path: /drone/src/output/
|
||
|
environment:
|
||
|
UID:
|
||
|
from_secret: uid
|
||
|
GID:
|
||
|
from_secret: gid
|
||
|
commands:
|
||
|
- pip install 'Nikola[extras]'
|
||
|
- nikola build
|
||
|
- chown -R "$UID":"$GID" output/*
|
||
|
|
||
|
volumes:
|
||
|
- name: blog-path
|
||
|
host:
|
||
|
path: /mnt/blog/
|
||
|
|