This commit is contained in:
parent
5a4e43a228
commit
d06bdcdd4a
10
script.sh
10
script.sh
@ -1,11 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
echo 'Updating Sentry Project: '${SENTRY_PROJECT}
|
echo 'Updating Sentry Project: '${PLUGIN_SENTRY_PROJECT}
|
||||||
echo 'New Release: '${DRONE_REPO}':'${DRONE_COMMIT_SHA}
|
echo 'New Release: '${DRONE_REPO}':'${DRONE_COMMIT_SHA}
|
||||||
|
|
||||||
curl https://${SENTRY_DOMAIN}/api/0/organizations/kmlabz/releases/ \
|
curl https://${PLUGIN_SENTRY_DOMAIN}/api/0/organizations/kmlabz/releases/ \
|
||||||
-X POST \
|
-X POST \
|
||||||
-H 'Authorization: Bearer '${SENTRY_TOKEN} \
|
-H 'Authorization: Bearer '${PLUGIN_SENTRY_TOKEN} \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-d '
|
-d '
|
||||||
{
|
{
|
||||||
@ -14,6 +14,6 @@ curl https://${SENTRY_DOMAIN}/api/0/organizations/kmlabz/releases/ \
|
|||||||
"repository":"'${DRONE_REPO}'",
|
"repository":"'${DRONE_REPO}'",
|
||||||
"commit":"'${DRONE_COMMIT_SHA}'"
|
"commit":"'${DRONE_COMMIT_SHA}'"
|
||||||
}],
|
}],
|
||||||
"projects":["'${SENTRY_PROJECT}'"]
|
"projects":["'${PLUGIN_SENTRY_PROJECT}'"]
|
||||||
}
|
}
|
||||||
'
|
'
|
||||||
|
Loading…
Reference in New Issue
Block a user