Added caching and think I got it

This commit is contained in:
Thomas Cole 2022-06-03 06:08:51 -04:00
parent 7d907590c8
commit 0a63bcf237

View File

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