From 9073408f6d008922f637ebff7b8e0bfde691a52b Mon Sep 17 00:00:00 2001 From: mifi Date: Wed, 3 May 2023 15:11:41 -0400 Subject: [PATCH] What about... --- .drone.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0c061d0..4ae196e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,6 +8,9 @@ workspace: steps: - name: yarn install image: node:latest + volumes: + - name: module_cache + path: ./node_modules commands: - yarn install @@ -46,6 +49,10 @@ trigger: event: - push +volumes: + - name: module_cache + temp: {} + --- kind: pipeline type: docker @@ -57,6 +64,9 @@ workspace: steps: - name: yarn install image: node:latest + volumes: + - name: module_cache + path: ./node_modules commands: - yarn install @@ -90,6 +100,10 @@ trigger: event: - push +volumes: + - name: module_cache + temp: {} + --- kind: pipeline type: docker @@ -103,7 +117,7 @@ platform: arch: arm64 steps: -- name: yarn-install +- name: Build image: node commands: - cd /app @@ -125,9 +139,7 @@ steps: volumes: - name: app-build-dir path: /app-build - volumes: - - name: app-build-dir - temp: {} + depends_on: Build trigger: branch: @@ -137,3 +149,7 @@ trigger: depends_on: - Build Pipeline + +volumes: + - name: app-build-dir + temp: {}