The DevOps Blog https://blog.lazkani.io
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
556 B

---
kind: pipeline
type: docker
name: Deploy
steps:
- name: build
image: nikola:20210226
volumes:
- name: blog-path
path: /blog/
environment:
UID:
from_secret: uid
GID:
from_secret: gid
commands:
- nikola theme -i willy-theme
- nikola build
- chown -R "$UID":"$GID" output/*
- mv output/ "/blog/${DRONE_COMMIT}"
- cd /blog/
- rm -f blog.lazkani.io
- ln -s "${DRONE_COMMIT}" blog.lazkani.io
volumes:
- name: blog-path
host:
path: /mnt/blog/