Move sftp cache settings into settings key
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Garrett Mills 2020-10-28 13:50:20 -05:00
parent c471bee62f
commit fdb98eefaa
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -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