From 001a79de3da0bb69090726f627cb418f996c6718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sun, 19 Jul 2020 13:25:51 +0200 Subject: [PATCH] add script --- script.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 script.sh diff --git a/script.sh b/script.sh new file mode 100644 index 0000000..c0c4a38 --- /dev/null +++ b/script.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +echo 'Updating Sentry Project: '${PLUGIN_SENTRY_PROJECT} +echo 'New Release: '${DRONE_REPO}':'${DRONE_COMMIT_SHA} + +curl https://sentry.kmlabz.com/api/0/organizations/kmlabz/releases/ \ + -X POST \ + -H 'Authorization: Bearer '${SENTRY_TOKEN} \ + -H 'Content-Type: application/json' \ + -d ' + { + "version": "'${DRONE_BUILD_NUMBER}'", + "refs": [{ + "repository":"'${DRONE_REPO}'", + "commit":"'${DRONE_COMMIT_SHA}'" + }], + "projects":["'${PLUGIN_SENTRY_PROJECT}'"] +} +' \ No newline at end of file