1
0
Fork 0
docs/.drone.yml

35 Zeilen
627 B
YAML

2023-06-26 12:15:24 +02:00
name: amd64
kind: pipeline
type: docker
platform:
os: linux
arch: amd64
2023-06-26 15:06:57 +02:00
clone:
disable: true
2023-06-26 12:15:24 +02:00
steps:
2023-06-26 16:12:23 +02:00
- name: clone
2023-06-26 15:34:58 +02:00
image: registry.access.redhat.com/ubi9/python-311:1-12
2023-06-26 16:12:23 +02:00
volumes:
- name: cache
path: /opt/app-root/src
2023-06-26 15:34:58 +02:00
commands:
2023-06-26 15:38:44 +02:00
- mkdir ~/docs && cd ~/docs
2023-06-26 15:51:13 +02:00
- git clone $DRONE_REPO_LINK .
2023-06-26 15:34:58 +02:00
- git checkout $DRONE_COMMIT -b $DRONE_BRANCH
2023-06-26 16:12:23 +02:00
- name: build
image: registry.access.redhat.com/ubi9/python-311:1-12
volumes:
- name: cache
path: /opt/app-root/src
commands:
- cd ~/docs
2023-06-26 15:06:57 +02:00
- pip install --upgrade pip
2023-06-26 12:15:24 +02:00
- pip install -r requirements.txt
2023-06-26 16:12:23 +02:00
- mkdocs build
volumes:
- name: cache
temp: {}