From 798a09683b2e2d715c643afcf706ede0ba54b378 Mon Sep 17 00:00:00 2001 From: greglebreton Date: Wed, 4 Jan 2023 16:25:51 +0100 Subject: [PATCH] add .gitignore + clean up useless folders --- .drone.yml | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..464f4d9 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,60 @@ +kind: pipeline + name: mkdocs build and deploy + type: docker + platform: + os: linux + arch: arm64 + trigger: + branch: + - master + + steps: + + # - name: git pull submodules + # image: alpine/git + # settings: + # user: + # from_secret: GIT_USER + # password: + # from_secret: GIT_PASSWORD + # commands: + # - git submodule update --init --recursive + + - name: build mkdocs site + image: plugins/docker + 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 + + - name: notification + image: appleboy/drone-telegram + settings: + token: + 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