first draft of the pipeline
parent
1ddc1d415c
commit
f3b80f59fb
@ -0,0 +1,25 @@
|
|||||||
|
kind: pipeline
|
||||||
|
name: update-blog
|
||||||
|
|
||||||
|
clone:
|
||||||
|
depth: 1
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
image: code.ndumas.com/ndumas/drone-hugo:latest
|
||||||
|
commands:
|
||||||
|
- cd /tmp/blog
|
||||||
|
- hugo version
|
||||||
|
- hugo --enableGitInfo --minify
|
||||||
|
- name: publish
|
||||||
|
image: drillster/drone-rsync
|
||||||
|
settings:
|
||||||
|
key:
|
||||||
|
from_secret: BLOG_DEPLOY_KEY
|
||||||
|
user: blog
|
||||||
|
delete: true
|
||||||
|
recursive: true
|
||||||
|
hosts: ["hugo-demo.ndumas.com"]
|
||||||
|
source: public/
|
||||||
|
target: /var/www/hugo-demo.ndumas.com/
|
||||||
|
include: ["*"]
|
Loading…
Reference in New Issue