Move sftp cache settings into settings key
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
c471bee62f
commit
fdb98eefaa
46
.drone.yml
46
.drone.yml
@ -5,17 +5,18 @@ steps:
|
||||
# ============ RESTORE CACHE =============
|
||||
- name: restore node_modules cache
|
||||
image: appleboy/drone-sftp-cache
|
||||
server:
|
||||
from_secret: cache_server
|
||||
port: 22
|
||||
username:
|
||||
from_secret: cache_server_user
|
||||
key:
|
||||
from_secret: cache_server_key
|
||||
path: /var/cache/noded-frontend-node_modules
|
||||
restore: true
|
||||
mount:
|
||||
- node_modules
|
||||
settings:
|
||||
server:
|
||||
from_secret: cache_server
|
||||
port: 22
|
||||
username:
|
||||
from_secret: cache_server_user
|
||||
key:
|
||||
from_secret: cache_server_key
|
||||
path: /var/cache/noded-frontend-node_modules
|
||||
restore: true
|
||||
mount:
|
||||
- node_modules
|
||||
|
||||
# ============ BUILD STEPS ===============
|
||||
- name: build-prod
|
||||
@ -30,17 +31,18 @@ steps:
|
||||
# =============== REBULD CACHE ==============
|
||||
- name: rebuild node_modules cache
|
||||
image: appleboy/drone-sftp-cache
|
||||
server:
|
||||
from_secret: cache_server
|
||||
port: 22
|
||||
username:
|
||||
from_secret: cache_server_user
|
||||
key:
|
||||
from_secret: cache_server_key
|
||||
path: /var/cache/noded-frontend-node_modules
|
||||
rebuild: true
|
||||
mount:
|
||||
- node_modules
|
||||
settings:
|
||||
server:
|
||||
from_secret: cache_server
|
||||
port: 22
|
||||
username:
|
||||
from_secret: cache_server_user
|
||||
key:
|
||||
from_secret: cache_server_key
|
||||
path: /var/cache/noded-frontend-node_modules
|
||||
rebuild: true
|
||||
mount:
|
||||
- node_modules
|
||||
|
||||
# =============== RELEASE ===============
|
||||
- name: release
|
||||
|
Loading…
Reference in New Issue
Block a user