From f07bcca3a269b67df3ad574f7eac0cd69fbbcd98 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 26 Mar 2023 15:44:24 +0100 Subject: [PATCH] Update '.drone.yml' --- .drone.yml | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/.drone.yml b/.drone.yml index e69de29..b55f6f7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -0,0 +1,58 @@ +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 + when: + branch: + exclude: + - main + commands: + - npm run lint + + # Main branches + - name: docker + image: plugins/docker + when: + branch: + - main + settings: + username: + from_secret: dockerhub_username + password: + from_secret: dockerhub_password + repo: fascinated/beatsaber-overlay + tags: latest + +volumes: + - name: cache + host: + path: /tmp/cache