Adding drone config

This commit is contained in:
Elia el Lazkani 2020-02-08 01:43:51 +01:00 committed by Elia El Lazkani
parent b4b22ab5d7
commit 3b4fac22cc
No known key found for this signature in database
GPG key ID: FBD81F2B1F488C2B

26
.drone.yml Normal file
View file

@ -0,0 +1,26 @@
---
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/