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 =============
|
# ============ RESTORE CACHE =============
|
||||||
- name: restore node_modules cache
|
- name: restore node_modules cache
|
||||||
image: appleboy/drone-sftp-cache
|
image: appleboy/drone-sftp-cache
|
||||||
server:
|
settings:
|
||||||
from_secret: cache_server
|
server:
|
||||||
port: 22
|
from_secret: cache_server
|
||||||
username:
|
port: 22
|
||||||
from_secret: cache_server_user
|
username:
|
||||||
key:
|
from_secret: cache_server_user
|
||||||
from_secret: cache_server_key
|
key:
|
||||||
path: /var/cache/noded-frontend-node_modules
|
from_secret: cache_server_key
|
||||||
restore: true
|
path: /var/cache/noded-frontend-node_modules
|
||||||
mount:
|
restore: true
|
||||||
- node_modules
|
mount:
|
||||||
|
- node_modules
|
||||||
|
|
||||||
# ============ BUILD STEPS ===============
|
# ============ BUILD STEPS ===============
|
||||||
- name: build-prod
|
- name: build-prod
|
||||||
@ -30,17 +31,18 @@ steps:
|
|||||||
# =============== REBULD CACHE ==============
|
# =============== REBULD CACHE ==============
|
||||||
- name: rebuild node_modules cache
|
- name: rebuild node_modules cache
|
||||||
image: appleboy/drone-sftp-cache
|
image: appleboy/drone-sftp-cache
|
||||||
server:
|
settings:
|
||||||
from_secret: cache_server
|
server:
|
||||||
port: 22
|
from_secret: cache_server
|
||||||
username:
|
port: 22
|
||||||
from_secret: cache_server_user
|
username:
|
||||||
key:
|
from_secret: cache_server_user
|
||||||
from_secret: cache_server_key
|
key:
|
||||||
path: /var/cache/noded-frontend-node_modules
|
from_secret: cache_server_key
|
||||||
rebuild: true
|
path: /var/cache/noded-frontend-node_modules
|
||||||
mount:
|
rebuild: true
|
||||||
- node_modules
|
mount:
|
||||||
|
- node_modules
|
||||||
|
|
||||||
# =============== RELEASE ===============
|
# =============== RELEASE ===============
|
||||||
- name: release
|
- name: release
|
||||||
|
Loading…
Reference in New Issue
Block a user