2023-06-27 09:22:23 +02:00
|
|
|
name: test
|
2023-06-26 16:14:23 +02:00
|
|
|
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 .
|
2023-06-26 16:21:18 +02:00
|
|
|
- git checkout $DRONE_COMMIT
|
2023-06-26 19:05:22 +02:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- renovate/*
|
2023-06-26 16:14: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
|
|
|
|
- pip install --upgrade pip
|
|
|
|
- pip install -r requirements.txt
|
|
|
|
- mkdocs build
|
2023-06-26 19:05:22 +02:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude:
|
|
|
|
- renovate/*
|
2023-06-26 16:14:23 +02:00
|
|
|
|
2023-06-27 09:22:23 +02:00
|
|
|
trigger:
|
2023-07-02 12:07:53 +02:00
|
|
|
event:
|
|
|
|
- push
|
|
|
|
- pull_request
|
2023-07-02 12:23:04 +02:00
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
temp: {}
|
2023-06-27 09:25:56 +02:00
|
|
|
---
|
2023-07-02 18:32:15 +02:00
|
|
|
name: deploy to production
|
2023-06-27 09:25:56 +02:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
|
|
|
|
platform:
|
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
|
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
2023-07-02 12:07:53 +02:00
|
|
|
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
|
|
|
|
- mkdocs build
|
2023-07-02 18:32:15 +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
|
|
|
|
source: /opt/app-root/src/docs/site
|
|
|
|
overwrite: true
|
2023-06-27 09:25:56 +02:00
|
|
|
|
2023-07-02 12:07:53 +02:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- promote
|
|
|
|
target:
|
|
|
|
- production
|
2023-06-26 16:14:23 +02:00
|
|
|
volumes:
|
|
|
|
- name: cache
|
|
|
|
temp: {}
|