瀏覽代碼

Play it again sam

Colin Powell 2 年之前
父節點
當前提交
da02691055
共有 1 個文件被更改,包括 9 次插入10 次删除
  1. 9 10
      .drone.yml

+ 9 - 10
.drone.yml

@@ -1,14 +1,17 @@
 ---
-################
-# Build & Test #
-################
+##################
+# Build & Publish#
+##################
 
 kind: pipeline
-name: run_tests
+name: build and publish
 
 steps:
-  # Run tests against Python/Flask engine backend (with pytest)
-  - name: build and push
+  - name: build
+    image: klakegg/hugo:alpine
+    commands:
+      - hugo
+  - name: publish
     image: drillster/drone-rsync
     settings:
       user: root
@@ -19,10 +22,6 @@ steps:
       source: ./public
       target: /home/user-data/www/unbl.ink/
       secrets: [ key ]
-    commands:
-      - wget https://github.com/gohugoio/hugo/releases/download/v0.110.0/hugo_0.110.0_linux-amd64.tar.gz
-      - tar zxvf hugo_0.110.0_linux-amd64.tar.gz
-      - ./hugo
 volumes:
   - name: docker
     host: