Mise à jour de '.drone.yml'

master
gregandev 2 years ago
parent fbe6a0854b
commit 8ebb5d0571
  1. 16
      .drone.yml

@ -1,5 +1,5 @@
kind: pipeline kind: pipeline
name: mkdocs build and deploy name: hugo
type: docker type: docker
platform: platform:
@ -11,18 +11,17 @@ trigger:
- master - master
steps: steps:
- name: build mkdocs site - name:
image: titom73/mkdocs 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.100"]
target: /home/gregan/workspace/mkdocs/doc/site target: /var/www/html/mkdocs/doc/site
source: site/* source: site/*
port: port:
from_secret: RSYNC_PORT from_secret: RSYNC_PORT
@ -30,7 +29,7 @@ steps:
from_secret: RSYNC_USER 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:
@ -49,4 +48,5 @@ steps:
✅ 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