2020-07-19 13:25:51 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-07-19 13:35:15 +02:00
|
|
|
echo 'Updating Sentry Project: '${SENTRY_PROJECT}
|
2020-07-19 13:25:51 +02:00
|
|
|
echo 'New Release: '${DRONE_REPO}':'${DRONE_COMMIT_SHA}
|
|
|
|
|
2020-07-19 13:35:15 +02:00
|
|
|
curl https://${SENTRY_DOMAIN}/api/0/organizations/kmlabz/releases/ \
|
2020-07-19 13:25:51 +02:00
|
|
|
-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}'"
|
|
|
|
}],
|
2020-07-19 13:35:15 +02:00
|
|
|
"projects":["'${SENTRY_PROJECT}'"]
|
2020-07-19 13:25:51 +02:00
|
|
|
}
|
|
|
|
'
|