From 74f80c95a4ec613a6d175aa0dee479995c73f26f Mon Sep 17 00:00:00 2001 From: Nicholas Horwood Date: Tue, 5 Mar 2024 17:43:42 +0000 Subject: [PATCH] Add woodpecker build --- .woodpecker | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .woodpecker diff --git a/.woodpecker b/.woodpecker new file mode 100644 index 0000000..46e21a6 --- /dev/null +++ b/.woodpecker @@ -0,0 +1,37 @@ +steps: + +- name: deploy + image: appleboy/drone-scp + settings: + host: jellyfish.beaucoup.fish + source: site + target: /home/nicholas/docsify + port: 22 + username: + from_secret: JELLYFISH_SSH_USERNAME + password: + from_secret: JELLYFISH_SSH_PASSWORD + when: + branch: + - master + event: + exclude: + - pull_request + + +- name: ntfy + image: codeberg.org/l-x/woodpecker-ntfy + when: + - event: push + - status: [ success, failure ] + settings: + url: https://ntfy.bigyellowfish.com/ntfy-dev + token: + from_secret: NTFY_TOKEN + title: Commit by ${CI_COMMIT_AUTHOR} on ${CI_COMMIT_BRANCH} + priority: urgent + actions: "view, Open portal, https://home.nest.com/, clear=true; http, Turn down, https://api.nest.com/, body='{\"temperature\": 65}'" + click: https://where.to.go + icon: https://woodpecker-ci.org/img/logo.svg + tags: robot,${CI_REPO_NAME} + message: ${CI_COMMIT_MESSAGE}