From c61ee6b1a1b1b2c15d258350c2ab9be4fff22850 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Tue, 24 Jan 2023 15:38:37 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9E.drone.yml=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 41 +++++++++++++---------------------------- 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/.drone.yml b/.drone.yml index f1998f73..b1e6e5bd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,36 +13,9 @@ steps: extended: true url: https://dev.cantorgymnasium.de commands: - - apk add --update --no-cache tzdata git + - apk add --update --no-cache tzdata - /bin/drone-hugo - find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -print0 | xargs -0 gzip -9 -f -k - - git init public - - - name: push public - image: appleboy/drone-git-push - settings: - branch: pages - remote: - from_secret: drone_remote - force: true - commit: true - commit_message: "[ci] website update" - path: public - author_name: GCG.Admin - author_email: admin@cantor-gymnasium.de - - - - name: notification - image: appleboy/drone-telegram - settings: - token: - from_secret: telegram_token - to: - from_secret: telegram_room_id - when: - status: - - success - - failure - name: deploy image: drillster/drone-rsync @@ -58,6 +31,18 @@ steps: recursive: true delete: true + - name: notification + image: appleboy/drone-telegram + settings: + token: + from_secret: telegram_token + to: + from_secret: telegram_room_id + when: + status: + - success + - failure + trigger: branch: - master