Added drone caching
continuous-integration/drone/push Build is failing Details

main
Guus van Meerveld 2 years ago
parent 1240be41cd
commit 86947b34af
Signed by: Guusvanmeerveld
GPG Key ID: 2BA7D7912771966E

@ -5,6 +5,9 @@ name: deploy-image
steps: steps:
- name: test-build - name: test-build
image: node:16-alpine image: node:16-alpine
volumes:
- name: cache
path: /drone/src/node_modules
commands: commands:
- yarn install - yarn install
- yarn run prisma:generate - yarn run prisma:generate
@ -20,3 +23,8 @@ steps:
from_secret: docker_username from_secret: docker_username
password: password:
from_secret: docker_password from_secret: docker_password
volumes:
- name: cache
host:
path: /tmp/drone/cache/node_modules
Loading…
Cancel
Save