geforkt von nick-slowinski.de/docs
Drone: Adding cache volume and unify used image
Dieser Commit ist enthalten in:
Ursprung
b8e1a67904
Commit
18848ce994
1 geänderte Dateien mit 11 neuen und 2 gelöschten Zeilen
11
.drone.yml
11
.drone.yml
|
@ -11,13 +11,19 @@ platform:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: clone
|
- 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:
|
commands:
|
||||||
- mkdir ~/docs && cd ~/docs
|
- mkdir ~/docs && cd ~/docs
|
||||||
- git clone $DRONE_REPO_LINK .
|
- git clone $DRONE_REPO_LINK .
|
||||||
- git checkout $DRONE_COMMIT
|
- git checkout $DRONE_COMMIT
|
||||||
- name: build
|
- name: build
|
||||||
image: registry.access.redhat.com/ubi9/nodejs-18-minimal:1-67
|
image: registry.access.redhat.com/ubi9/nodejs-18-minimal:1-67
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /opt/app-root/src
|
||||||
commands:
|
commands:
|
||||||
- cd ~/docs
|
- cd ~/docs
|
||||||
- npm install --only=production
|
- npm install --only=production
|
||||||
|
@ -26,3 +32,6 @@ trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
temp: {}
|
Laden …
In neuem Issue referenzieren