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

57 lines
1.1 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 && mkdocs build
- name: deploy
image: drillster/drone-rsync
settings:
hosts: ["192.168.1.101"]
target: /home/gregan/workspace/mkdocs/doc
source: doc/*
port:
from_secret: RSYNC_PORT
user:
from_secret: RSYNC_USER
key:
from_secret: RSYNC_STACK_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: >
📝 {{repo.name}} / {{commit.branch}} - {{commit.message}}
{{#success build.status}}
✅ succeeded for 👷 build {{build.number}}
{{else}}
🛑 failed for 👷 build {{build.number}}
{{/success}}