2
0
Fork 1

Drone: Adding cache volume and unify used image
Einige Prüfungen sind fehlgeschlagen
continuous-integration/drone/push Build is failing

Dieser Commit ist enthalten in:
Nick Slowinski 2023-09-09 17:28:45 +02:00
Ursprung b8e1a67904
Commit 18848ce994
Signiert von: nickslowinski
GPG-Schlüssel-ID: A28671573AA347CC

Datei anzeigen

@ -11,13 +11,19 @@ platform:
steps:
- name: clone
image: registry.access.redhat.com/ubi9/python-311:1-12
image: registry.access.redhat.com/ubi9/nodejs-18-minimal:1-67
volumes:
- name: cache
path: /opt/app-root/src
commands:
- mkdir ~/docs && cd ~/docs
- git clone $DRONE_REPO_LINK .
- git checkout $DRONE_COMMIT
- name: build
image: registry.access.redhat.com/ubi9/nodejs-18-minimal:1-67
volumes:
- name: cache
path: /opt/app-root/src
commands:
- cd ~/docs
- npm install --only=production
@ -25,4 +31,7 @@ steps:
trigger:
event:
- push
- pull_request
- pull_request
volumes:
- name: cache
temp: {}