From fbe6a0854bce54051b51abc48f746816f7c590be Mon Sep 17 00:00:00 2001 From: gregandev Date: Wed, 4 Jan 2023 20:42:11 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 60 +++++++++++++++++++++++++++--------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3b160de..3e7316b 100644 --- a/.drone.yml +++ b/.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}} \ No newline at end of file + 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}} \ No newline at end of file