|
@@ -0,0 +1,40 @@
|
|
|
+---
|
|
|
+##################
|
|
|
+# Build & Publish#
|
|
|
+##################
|
|
|
+
|
|
|
+kind: pipeline
|
|
|
+name: build and publish
|
|
|
+
|
|
|
+steps:
|
|
|
+ - name: build
|
|
|
+ image: klakegg/hugo:alpine
|
|
|
+ commands:
|
|
|
+ - hugo -d /tmp/.build/public
|
|
|
+ volumes:
|
|
|
+ - name: hugo
|
|
|
+ path: /tmp/.build/public
|
|
|
+ - name: publish
|
|
|
+ image: drillster/drone-rsync
|
|
|
+ settings:
|
|
|
+ user: root
|
|
|
+ delete: true
|
|
|
+ recursive: true
|
|
|
+ args: "-v"
|
|
|
+ key:
|
|
|
+ from_secret: key
|
|
|
+ hosts:
|
|
|
+ - box.unbl.ink
|
|
|
+ source: /tmp/.build/public/
|
|
|
+ target: /home/user-data/www/roo.news/
|
|
|
+ secrets: [ key ]
|
|
|
+ volumes:
|
|
|
+ - name: hugo
|
|
|
+ path: /tmp/.build/public
|
|
|
+volumes:
|
|
|
+ - name: docker
|
|
|
+ host:
|
|
|
+ path: /var/run/docker.sock
|
|
|
+ - name: hugo
|
|
|
+ host:
|
|
|
+ path: /tmp/cache/drone/hugo
|