From bbc9548a93f805424dfd6c6b5b7ccf59ecf36277 Mon Sep 17 00:00:00 2001 From: Nick Slowinski Date: Mon, 26 Jun 2023 16:14:23 +0200 Subject: [PATCH] add drone config --- .drone.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..4cf1073 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,35 @@ +name: amd64 +kind: pipeline +type: docker + +platform: + os: linux + arch: amd64 + +clone: + disable: true + +steps: +- 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 + - 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 + +volumes: +- name: cache + temp: {} \ No newline at end of file