From 4444544b253763fad97b78113593b2d40f269cf0 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Mon, 29 Mar 2021 11:24:01 -0500 Subject: [PATCH] Add Drone config --- .drone.yml | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++ .idea/vcs.xml | 6 ++++++ 2 files changed, 60 insertions(+) create mode 100644 .drone.yml create mode 100644 .idea/vcs.xml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..aab8537 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,54 @@ +kind: pipeline +name: default +type: docker +steps: + - name: build module + image: glmdev/node-pnpm:latest + commands: + - pnpm i + - pnpm build + - tar czf build.tar.gz lib + + - name: send build success notifications + image: plugins/webhook + settings: + urls: + from_secret: notify_webhook_url + content_type: application/json + template: | + { + "title": "Drone-CI [extollo/cli @ ${DRONE_BUILD_NUMBER}]", + "message": "Build completed successfully.", + "priority": 4 + } + when: + status: success + + - name: send build error notifications + image: plugins/webhook + settings: + urls: + from_secret: notify_webhook_url + content_type: application/json + template: | + { + "title": "Drone-CI [extollo/cli @ ${DRONE_BUILD_NUMBER}]", + "message": "Build failed!", + "priority": 6 + } + when: + status: failure + + - name: trigger documentation build + image: plugins/downstream + settings: + server: https://ci.gerrettmils.dev + token: + from_secret: drone_token + fork: false + last_successful: true + deploy: production + repositories: + - Extollo/docs@master + when: + status: success diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file