From 0a63bcf237536e64bc025898bb6de3a7a15a2cc3 Mon Sep 17 00:00:00 2001 From: Thomas Cole Date: Fri, 3 Jun 2022 06:08:51 -0400 Subject: [PATCH] Added caching and think I got it --- .drone.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.drone.yml b/.drone.yml index 23fbb6d..495163e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,12 +2,39 @@ kind: pipeline name: buildsite steps: + +- name: restore_cache: + image: appleboy/drone-sftp-cache + settings: + host: 192.168.10.5 + username: thomas + password: + from_secret: ssh_password + port: 22 + path: /var/cache/drone + restore: true + mount: + - node_modules + - name: build image: node commands: - npm install - npm run build +- name: rebuild_cache: + image: appleboy/drone-sftp-cache + settings: + host: 192.168.10.5 + username: thomas + password: + from_secret: ssh_password + port: 22 + path: /var/cache/drone + rebuild: true + mount: + - node_modules + - name: copy image: appleboy/drone-scp settings: