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.
|
|
kind: pipeline
|
|
|
name: hugo
|
|
|
type: docker
|
|
|
|
|
|
platform:
|
|
|
os: linux
|
|
|
arch: arm64
|
|
|
|
|
|
trigger:
|
|
|
branch:
|
|
|
- master
|
|
|
|
|
|
steps:
|
|
|
|
|
|
- name:
|
|
|
image: titom73/mkdocs
|
|
|
output: ./site
|
|
|
command: ["mkdocs build"]
|
|
|
|
|
|
- name: deploy on server
|
|
|
image: drillster/drone-rsync
|
|
|
settings:
|
|
|
hosts: ["192.168.1.100"]
|
|
|
target: /var/www/html/mkdocs/doc/site
|
|
|
source: site/*
|
|
|
port:
|
|
|
from_secret: RSYNC_PORT
|
|
|
user:
|
|
|
from_secret: RSYNC_USER
|
|
|
key:
|
|
|
from_secret: RSYNC_SSH_KEY_STACK
|
|
|
|
|
|
- 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}}
|
|
|
|
|
|
|