Adding drone config
This commit is contained in:
parent
b4b22ab5d7
commit
3b4fac22cc
1 changed files with 26 additions and 0 deletions
26
.drone.yml
Normal file
26
.drone.yml
Normal 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/
|
||||
|
Reference in a new issue