From 076460418bdb0ae59fa4834accdcf7ab5eb22031 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Wed, 1 Feb 2023 17:35:23 +0100 Subject: [PATCH] drone dev --- .drone.dev.yml | 36 ++++++++++++++++++++++++++++++++++++ .drone.yml | 12 ------------ 2 files changed, 36 insertions(+), 12 deletions(-) create mode 100644 .drone.dev.yml diff --git a/.drone.dev.yml b/.drone.dev.yml new file mode 100644 index 0000000..cc6f587 --- /dev/null +++ b/.drone.dev.yml @@ -0,0 +1,36 @@ +kind: pipeline +type: docker +name: dev +steps: + - name: hugo build + image: plugins/hugo + settings: + hugo_version: 0.110.0 + validate: false + extended: true + url: https://dev.cantorgymnasium.de/ + commands: + - apk add --update --no-cache tzdata + - /bin/drone-hugo + + - name: deploy + image: drillster/drone-rsync + settings: + hosts: [ "cantorgymnasium.de" ] + port: + from_secret: ssh_port + user: web-push + key: + from_secret: ssh_key + source: public/ + target: /opt/data/webdata/gcg-website-dev/ + recursive: true + delete: true + +trigger: + branch: + - master + event: + - push + - cron + - rollback \ No newline at end of file diff --git a/.drone.yml b/.drone.yml index d64d038..e471133 100644 --- a/.drone.yml +++ b/.drone.yml @@ -81,18 +81,6 @@ 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