From 83064f96a776e0c87d2b59de874ee389ed5f4fcd Mon Sep 17 00:00:00 2001 From: Werner <1331699+Arrow768@users.noreply.github.com> Date: Tue, 16 Feb 2021 09:22:39 +0100 Subject: [PATCH] Add sftp-cache to drone (#11097) --- .drone.yml | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 2feb88860a9..290a101b249 100644 --- a/.drone.yml +++ b/.drone.yml @@ -33,6 +33,21 @@ steps: image: aurorastation/dm-buildimage:latest commands: - /opt/dreamchecker + - name: "Restore NPM Cache" + image: appleboy/drone-sftp-cache + settings: + server: + from_secret: sftp_server + port: + from_secret: sftp_port + username: + from_secret: sftp_user + password: + from_secret: sftp_pass + path: /upload/nodecache + mount: + - vueui/node_modules + restore: true - name: "Vue - Lint and Compile" image: node:10-buster commands: @@ -41,6 +56,21 @@ steps: - (npm run lint | tee lint.log) - grep "No lint errors found!" lint.log - npm run build + - name: "Rebuild NPM Cache" + image: appleboy/drone-sftp-cache + settings: + server: + from_secret: sftp_server + port: + from_secret: sftp_port + username: + from_secret: sftp_user + password: + from_secret: sftp_pass + path: /upload/nodecache + mount: + - vueui/node_modules + rebuild: true --- kind: pipeline type: docker @@ -140,6 +170,6 @@ steps: - echo "Unit Tests Completed" --- kind: signature -hmac: 789040126b8c141504b44f8489c7d7c8dca93c7539270de6b2b67fd835061c9e +hmac: 786139dfd954616bf68bb0f31c69be9b93b2440468056be8a4a7c36704733890 ...