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

58 lines
1.1 KiB

kind: pipeline
2 years ago
name: mkdocs
type: docker
platform:
os: linux
arch: arm64
trigger:
branch:
- master
steps:
2 years ago
- name: build
#ARM version of mkDocs
image: ghcr.io/afritzler/mkdocs-material:8.1.0
2 years ago
pull: if-not-exists
volumes:
2 years ago
- name: site
2 years ago
path: /drone/src/docs
2 years ago
commands:
- cd doc && pip install -r requirements.txt && mkdocs build
2 years ago
- name: deploy
image: drillster/drone-rsync
2 years ago
settings:
hosts: ["192.168.1.100"]
target: /var/www/html/mkdocs
2 years ago
source: doc/*
2 years ago
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: >
📝 {{repo.name}} / {{commit.branch}} - {{commit.message}}
{{#success build.status}}
✅ succeeded for 👷 build {{build.number}} by {{commit.author}}
{{else}}
🛑 failed for 👷 build {{build.number}}
{{/success}}