Added caching and think I got it
This commit is contained in:
parent
7d907590c8
commit
0a63bcf237
27
.drone.yml
27
.drone.yml
@ -2,12 +2,39 @@ kind: pipeline
|
|||||||
name: buildsite
|
name: buildsite
|
||||||
|
|
||||||
steps:
|
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
|
- name: build
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- 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
|
- name: copy
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
settings:
|
settings:
|
||||||
|
Loading…
Reference in New Issue
Block a user