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