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:
2 years ago
- cd doc && mkdocs build
2 years ago
- name: deploy
image: drillster/drone-rsync
2 years ago
settings:
2 years ago
hosts: ["192.168.1.101"]
target: /home/gregan/workspace/mkdocs/doc
2 years ago
source: doc/*
2 years ago
port:
from_secret: RSYNC_PORT
user:
from_secret: RSYNC_USER
key:
2 years ago
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}}