From 760915ae8b35d3ecbcf287b054532cba26a951d4 Mon Sep 17 00:00:00 2001 From: surtur Date: Thu, 27 Feb 2020 16:42:22 +0100 Subject: [PATCH] adding .drone.yml --- .drone.yml | 60 ++++++++---------------------------------------------- 1 file changed, 9 insertions(+), 51 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7d0bab0..3b63007 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,6 +6,13 @@ name: pull clone: disable: true +trigger: + branch: + - "test*" + event: + - push + - pull_request + steps: - name: fedora-hugo pull: always @@ -60,7 +67,7 @@ steps: commands: - echo $OL_P > nupass - export RSYNC_RSH='sshpass -f ./nupass ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null' - - rsync -av --delete --chown $OL public/ $OL@dotya.ml:$OL_D + - rsync -av --delete --chown $OL public/ $OL@dotya.ml:$OL_D-test --- @@ -75,12 +82,9 @@ clone: disable: true trigger: - branch: - - master - - "dev*" event: - push - - tag + - pull_request status: - success - failure @@ -109,49 +113,3 @@ steps: from_secret: discord_webhook_id webhook_token: from_secret: discord_webhook_token - ---- -kind: pipeline -name: notifications-cron - -platform: - os: linux - arch: amd64 - -clone: - disable: true - -trigger: - event: - - cron - cron: - - hourly - - hourly-build - status: - - success - - failure - -depends_on: -- 'build and deploy' - -steps: - - name: discord - pull: always - image: appleboy/drone-discord:latest - settings: - message: > - {{#success build.status}} - ✅ [Hourly build #{{build.number}}]({{build.link}}) of `{{repo.name}}` has been successfully deployed. - event: **`{{build.event}}`** - commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}` - {{else}} - ❌ [Hourly build #{{build.number}}]({{build.link}}) of `{{repo.name}}` failed to deploy. - event: **`${DRONE_BUILD_EVENT}`** - failed stage(s): **`${DRONE_FAILED_STAGES}`** - commit [`${DRONE_COMMIT_SHA:0:7}`](https://git.dotya.ml/${DRONE_REPO}/commit/${DRONE_COMMIT_SHA}) by {{commit.author}} on `{{commit.branch}}` - ```{{commit.message}}``` - {{/success}} - webhook_id: - from_secret: discord_webhook_hourly_id - webhook_token: - from_secret: discord_webhook_hourly_token