From e0f48c99bdc9be944698f24dea7c7d88e6407c87 Mon Sep 17 00:00:00 2001 From: aminecmi Date: Sat, 6 Aug 2022 15:46:18 +0200 Subject: [PATCH] Still caching. --- .drone.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/.drone.yml b/.drone.yml index d409725..ffd17f3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,6 +25,7 @@ steps: restore: true mount: - ./node_modules + cache_key: [ DRONE_REPO_OWNER, DRONE_REPO_NAME, DRONE_BRANCH ] - name: build image: node:14 @@ -45,6 +46,7 @@ steps: rebuild: true mount: - ./node_modules + cache_key: [ DRONE_REPO_OWNER, DRONE_REPO_NAME, DRONE_BRANCH ] trigger: event: @@ -70,6 +72,7 @@ steps: restore: true mount: - ./node_modules + cache_key: [ DRONE_REPO_OWNER, DRONE_REPO_NAME, DRONE_BRANCH ] - name: build image: node:14 @@ -80,16 +83,6 @@ steps: VUE_APP_API_BASE_URL: from_secret: baseurl - - name: rebuild-cache - image: drillster/drone-volume-cache - volumes: - - name: cache - path: /cache - settings: - rebuild: true - mount: - - ./node_modules - - name: scp files image: appleboy/drone-scp settings: @@ -100,7 +93,6 @@ steps: port: 22 target: /home/ubuntu/courses source: dist/* - trigger: event: - promote