From 7ba1d814348a81679214f19ec1c893335dafcc35 Mon Sep 17 00:00:00 2001 From: wally <18603454788@163.com> Date: Wed, 19 Jan 2022 21:25:26 +0800 Subject: [PATCH] update production node version & add cache --- .drone.yml | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.drone.yml b/.drone.yml index 60c5320..a84e24a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,15 +17,15 @@ volumes: path: /var/lib/data steps: - # - name: restore-cache - # image: drillster/drone-volume-cache - # volumes: - # - name: cache - # path: /cache - # settings: - # restore: true - # mount: - # - ./node_modules + - name: restore-cache + image: drillster/drone-volume-cache + volumes: + - name: cache + path: /cache + settings: + restore: true + mount: + - ./node_modules - name: build image: node:16 @@ -38,15 +38,15 @@ steps: - npm i - npm run build:test - # - name: rebuild-cache - # image: drillster/drone-volume-cache - # volumes: - # - name: cache - # path: /cache - # settings: - # rebuild: true - # mount: - # - ./node_modules + - name: rebuild-cache + image: drillster/drone-volume-cache + volumes: + - name: cache + path: /cache + settings: + rebuild: true + mount: + - ./node_modules - name: deploy-scp image: appleboy/drone-scp @@ -122,7 +122,7 @@ steps: # - ./node_modules - name: build - image: node + image: node:16 pull: if-not-exists # default always # volumes: # - name: cache