You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
kind: pipeline
|
|
|
|
name: publish
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: submodules
|
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git submodule update --init --recursive
|
|
|
|
- name: sanitize-posts
|
|
|
|
image: alpine
|
|
|
|
commands:
|
|
|
|
- echo "NOT IMPLEMENTED"
|
|
|
|
- exit 0
|
|
|
|
- name: gather-media
|
|
|
|
image: alpine
|
|
|
|
commands:
|
|
|
|
- echo "NOT IMPLEMENTED"
|
|
|
|
- exit 0
|
|
|
|
- name: build
|
|
|
|
image: code.ndumas.com/ndumas/drone-hugo
|
|
|
|
commands:
|
|
|
|
- hugo --buildFuture=false --buildExpired=false --buildDrafts=false --minify
|
|
|
|
- name: publish
|
|
|
|
image: drillster/drone-rsync
|
|
|
|
settings:
|
|
|
|
key:
|
|
|
|
from_secret: blog_sync_key
|
|
|
|
user: blog
|
|
|
|
delete: true
|
|
|
|
recursive: true
|
|
|
|
hosts: ["blog.ndumas.com"]
|
|
|
|
source: ./public/
|
|
|
|
target: /var/www/blog.ndumas.com/
|
|
|
|
include: ["*"]
|