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
trigger:
branch:
- master
branch:
- master
steps:
- name: build mkdocs site
image: plugins/docker
output: ./site
image: titom73/mkdocs
output: ./site
command: ["mkdocs build"]
- name: deploy on server
image: drillster/drone-rsync
settings:
hosts: ["192.168.1.101"]
target: /home/gregan/workspace/mkdocs/doc/site
source: site/*
port:
from_secret: RSYNC_PORT
user:
from_secret: RSYNC_USER_STACK
key:
from_secret: RSYNC_SSH_KEY_STACK
hosts: ["192.168.1.101"]
target: /home/gregan/workspace/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
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}}
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}}
Loading…
Cancel
Save