You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docs/.drone.yml

56 lines
1.2 KiB
YAML

2 years ago
---
kind: pipeline
type: docker
2 years ago
name: build-home-docs
2 years ago
steps:
2 years ago
- name: build-docs
image: squidfunk/mkdocs-material:9.1.15
pull: if-not-exists
volumes:
- name: site
path: /site
commands:
- pip install -U -r ./requirements.txt
- mkdocs build
- cp -r site/ /site
2 years ago
- chown 1000:1000 /site
2 years ago
- chmod -R 777 /site
when:
event: push
branch: main
- name: telgram_notify
image: appleboy/drone-telegram
when:
status:
2 years ago
#- success
- failure
settings:
# The secrets below can be entered from the Drone UI for this repo
token:
from_secret: telegram_token
to:
from_secret: telegram_chat_id
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}}
2 years ago
volumes:
2 years ago
- name: site
host:
path: /opt/appdata/mkdocswiki