Static documentation site in Mkdocs https://doc.gregandev.fr
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
documentation/.drone.yml

67 lines
1.3 KiB

kind: pipeline
name: mkdocs
type: docker
platform:
os: linux
arch: arm64
trigger:
branch:
- master
steps:
- name: build
#ARM version of mkDocs
image: ghcr.io/afritzler/mkdocs-material:8.1.0
pull: if-not-exists
volumes:
- name: site
path: /drone/src/docs
commands:
- cd doc && pip install -r requirements.txt && mkdocs build
- name: deploy
image: drillster/drone-rsync
settings:
hosts: ["192.168.1.100"]
target: /var/www/html/mkdocs
source: doc/*
port:
from_secret: RSYNC_PORT
user:
from_secret: RSYNC_USER
key:
from_secret: RSYNC_SSH_KEY
- name: notification
image: appleboy/drone-telegram
settings:
token:
from_secret: TELEGRAM_TOKEN
to:
from_secret: TELEGRAM_USERID
when:
status:
- failure
- success
format: markdown
message: >
{{#success build.status}}
✅ Build #{{build.number}} of `{{repo.name}}` succeeded.
📝 Commit by {{commit.author}} on `{{commit.branch}}`:
```
{{commit.message}}
```
🌐 {{ build.link }}
{{else}}
❌ Build #{{build.number}} of `{{repo.name}}` failed.
📝 Commit by {{commit.author}} on `{{commit.branch}}`:
```
{{commit.message}}
```
🌐 {{ build.link }}
{{/success}}