2023-07-08 23:34:22 +02:00
|
|
|
name: test
|
|
|
|
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
|
|
|
|
- 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
|
2023-07-12 12:27:26 +02:00
|
|
|
- make dirhtml
|
2023-07-08 23:34:22 +02:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
temp: {}
|
|
|
|
|
|
|
|
---
|
|
|
|
name: deploy to staging
|
|
|
|
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
|
|
|
|
- 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
|
2023-07-12 12:27:26 +02:00
|
|
|
- make dirhtml
|
2023-07-08 23:34:22 +02:00
|
|
|
- name: deploy to staging
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
path: /opt/app-root/src
|
|
|
|
settings:
|
|
|
|
host: helene.nick-slowinski.de
|
|
|
|
username: drone_nick-slowinski_de-docs
|
|
|
|
key:
|
|
|
|
from_secret: ssh_private_key-drone_nick-slowinski_de-docs
|
|
|
|
target: /var/www/nick-slowinski.de/docs/staging
|
2023-07-08 23:37:04 +02:00
|
|
|
source: /opt/app-root/src/docs/build/html
|
2023-07-08 23:34:22 +02:00
|
|
|
rm: true
|
|
|
|
overwrite: true
|
2023-07-08 23:37:04 +02:00
|
|
|
strip_components: 6
|
2023-07-08 23:34:22 +02:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- promote
|
|
|
|
target:
|
|
|
|
- staging
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
temp: {}
|
|
|
|
|
|
|
|
---
|
|
|
|
name: deploy to production
|
|
|
|
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
|
|
|
|
- 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
|
2023-07-12 12:27:26 +02:00
|
|
|
- make dirhtml
|
2023-07-08 23:34:22 +02:00
|
|
|
- name: deploy to production
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
path: /opt/app-root/src
|
|
|
|
settings:
|
|
|
|
host: helene.nick-slowinski.de
|
|
|
|
username: drone_nick-slowinski_de-docs
|
|
|
|
key:
|
|
|
|
from_secret: ssh_private_key-drone_nick-slowinski_de-docs
|
|
|
|
target: /var/www/nick-slowinski.de/docs/production
|
2023-07-08 23:37:04 +02:00
|
|
|
source: /opt/app-root/src/docs/build/html
|
2023-07-08 23:34:22 +02:00
|
|
|
rm: true
|
|
|
|
overwrite: true
|
2023-07-08 23:37:04 +02:00
|
|
|
strip_components: 6
|
2023-07-08 23:34:22 +02:00
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- promote
|
|
|
|
target:
|
|
|
|
- production
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
temp: {}
|