Mise Γ  jour de '.drone.yml'

master
gregandev 2 years ago
parent 64f972e743
commit d40225dbaa
  1. 80
      .drone.yml

@ -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}}
Loading…
Cancel
Save