From fc08d1c7dc828f68a17943b6b7262d72309da486 Mon Sep 17 00:00:00 2001 From: Eigeen Date: Wed, 30 Mar 2022 02:06:09 +0800 Subject: [PATCH] CI test #1 --- .drone.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..453ec36 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,40 @@ +kind: pipeline +type: docker +name: deploy + +steps: + - name: restore-cache + image: drillster/drone-volume-cache + volumes: + - name: cache + path: /cache + settings: + restore: true + mount: + - ./node_modules + + - name: generate + image: node:14-alpine + commands: + - npm install + - hexo g + + - name: rebuild-cache + image: drillster/drone-volume-cache + volumes: + - name: cache + path: /cache + settings: + rebuild: true + mount: + - ./node_modules + #当对应条件的时候才会执行 + when: + status: + - success + - failure + +volumes: + - name: cache + host: + path: /tmp/cache \ No newline at end of file