From 922c979e743d9f151e12735991b7bc22a96c564f Mon Sep 17 00:00:00 2001 From: Nick Slowinski Date: Mon, 26 Jun 2023 16:12:23 +0200 Subject: [PATCH] 20 --- .drone.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7882f7d..4cf1073 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,13 +10,26 @@ clone: disable: true steps: -- name: clone and build +- name: clone image: registry.access.redhat.com/ubi9/python-311:1-12 + volumes: + - name: cache + path: /opt/app-root/src commands: - mkdir ~/docs && cd ~/docs - - echo $DRONE_REPO_LINK - git clone $DRONE_REPO_LINK . - git checkout $DRONE_COMMIT -b $DRONE_BRANCH +- name: build + image: registry.access.redhat.com/ubi9/python-311:1-12 + volumes: + - name: cache + path: /opt/app-root/src + commands: + - cd ~/docs - pip install --upgrade pip - pip install -r requirements.txt - - mkdocs build \ No newline at end of file + - mkdocs build + +volumes: +- name: cache + temp: {} \ No newline at end of file