From 88fbdced97894bd4bf32cd955b8fb94b19d02d86 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 14 Nov 2022 05:42:45 +0000 Subject: [PATCH] add .drone.yml --- .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..56e35c1 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,40 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: restore-cache + image: drillster/drone-volume-cache + volumes: + - name: cache + path: /cache + settings: + restore: true + mount: + - ./node_modules + + - name: install depends + image: node:18 + commands: + - npm install + + - name: rebuild-cache + image: drillster/drone-volume-cache + volumes: + - name: cache + path: /cache + settings: + rebuild: true + mount: + - ./node_modules + + # Other branches + - name: test + image: node:18 + commands: + - npm run lint + +volumes: + - name: cache + host: + path: /tmp/imageify