Mise à jour de '.drone.yml'
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
gregandev 2023-01-04 20:36:04 +01:00
parent 64f972e743
commit d40225dbaa

View File

@ -2,49 +2,49 @@ kind: pipeline
name: mkdocs build and deploy name: mkdocs build and deploy
type: docker type: docker
platform: platform:
os: linux os: linux
arch: arm64 arch: arm64
trigger: trigger:
branch: branch:
- master - master
steps: steps:
- name: build mkdocs site - name: build mkdocs site
image: plugins/docker image: plugins/docker
output: ./site output: ./site
command: ["mkdocs build"] command: ["mkdocs build"]
- name: deploy on server - name: deploy on server
image: drillster/drone-rsync image: drillster/drone-rsync
settings: settings:
hosts: ["192.168.1.101"] hosts: ["192.168.1.101"]
target: /home/gregan/workspace/mkdocs/doc/site target: /home/gregan/workspace/mkdocs/doc/site
source: site/* source: site/*
port: port:
from_secret: RSYNC_PORT from_secret: RSYNC_PORT
user: user:
from_secret: RSYNC_USER_STACK from_secret: RSYNC_USER_STACK
key: key:
from_secret: RSYNC_SSH_KEY_STACK from_secret: RSYNC_SSH_KEY_STACK
- name: notification - name: notification
image: appleboy/drone-telegram image: appleboy/drone-telegram
settings: settings:
token: token:
from_secret: TELEGRAM_TOKEN from_secret: TELEGRAM_TOKEN
to: to:
from_secret: TELEGRAM_USERID from_secret: TELEGRAM_USERID
when: when:
status: status:
- failure - failure
- success - success
format: markdown format: markdown
message: > message: >
📝 {{repo.name}} / {{commit.branch}} - {{commit.message}} 📝 {{repo.name}} / {{commit.branch}} - {{commit.message}}
{{#success build.status}} {{#success build.status}}
✅ succeeded for 👷‍♂️ build {{build.number}} ✅ succeeded for 👷‍♂️ build {{build.number}}
{{else}} {{else}}
🛑 failed for 👷‍♂️ build {{build.number}} 🛑 failed for 👷‍♂️ build {{build.number}}
{{/success}} {{/success}}