node cache
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
a0150a13e5
commit
16100d6bca
10
.drone.yml
10
.drone.yml
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue