Still caching.
This commit is contained in:
parent
89808e8f6a
commit
e0f48c99bd
14
.drone.yml
14
.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
|
||||
|
Loading…
Reference in New Issue
Block a user