Cache.
Some checks reported errors
continuous-integration/drone/push Build is passing
continuous-integration/drone Build was killed

This commit is contained in:
aminecmi 2022-08-06 15:35:54 +02:00
parent 15e69496b7
commit 89808e8f6a

View File

@ -16,6 +16,15 @@ steps:
SONAR_LOGIN:
from_secret: sonarScannerLogin
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
restore: true
mount:
- ./node_modules
- name: build
image: node:14
@ -26,17 +35,42 @@ steps:
environment:
VUE_APP_API_BASE_URL:
from_secret: baseurl
- name: rebuild-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
rebuild: true
mount:
- ./node_modules
trigger:
event:
- push
- pull_request
volumes:
- name: cache
host:
path: /tmp/cache
---
kind: pipeline
type: docker
name: CopyToServer
steps:
- name: restore-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
restore: true
mount:
- ./node_modules
- name: build
image: node:14
commands:
@ -46,6 +80,16 @@ steps:
VUE_APP_API_BASE_URL:
from_secret: baseurl
- name: rebuild-cache
image: drillster/drone-volume-cache
volumes:
- name: cache
path: /cache
settings:
rebuild: true
mount:
- ./node_modules
- name: scp files
image: appleboy/drone-scp
settings: