From 18848ce99475ddd2ee1dc14f2607525425c70821 Mon Sep 17 00:00:00 2001 From: Nick Slowinski Date: Sat, 9 Sep 2023 17:28:45 +0200 Subject: [PATCH] Drone: Adding cache volume and unify used image --- .drone.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 80802fc..a5e6125 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 \ No newline at end of file + - pull_request +volumes: +- name: cache + temp: {} \ No newline at end of file