Colin Powell 2 лет назад
Родитель
Сommit
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: