Mise Γ  jour de '.drone.yml'

master
gregandev 2 years ago
parent 28bf4a0303
commit fbe6a0854b
  1. 54
      .drone.yml

@ -7,46 +7,46 @@ platform:
arch: arm64 arch: arm64
trigger: trigger:
branch: branch:
- master - master
steps: steps:
- name: build mkdocs site - name: build mkdocs site
image: plugins/docker image: titom73/mkdocs
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
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}}
Loading…
Cancel
Save