node cache
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Sergio Álvarez 2022-01-12 08:30:02 +01:00
parent a0150a13e5
commit 16100d6bca
No known key found for this signature in database
GPG Key ID: 622780889DFDBDA5
1 changed files with 10 additions and 0 deletions

View File

@ -12,6 +12,9 @@ steps:
image: node:16.13.1-alpine
commands:
- cd frontend && npm install && npm run build
volumes:
- name: cache
path: /drone/src/frontend/node_modules
- name: build-php-image
image: plugins/docker
@ -36,6 +39,7 @@ steps:
auto_tag: true
repo: registry.xrg.io/xrges/nginx
registry: https://registry.xrg.io
cache_from: registry.xrg.io/xrges/nginx:latest
username:
from_secret: registry_username
password:
@ -51,6 +55,7 @@ steps:
auto_tag: true
repo: registry.xrg.io/xrges/redis
registry: https://registry.xrg.io
cache_from: registry.xrg.io/xrges/redis:latest
username:
from_secret: registry_username
password:
@ -59,6 +64,11 @@ steps:
- frontend
- backend
volumes:
- name: cache
host:
path: /tmp/drone/cache/node_modules
node:
location: home