Skip to content

Commit

Permalink
Merge pull request #4 from titel-media/fix/notify-sentry
Browse files Browse the repository at this point in the history
fix: notify sentry command
  • Loading branch information
Avery authored Nov 14, 2019
2 parents 2fc4a7e + 4fa12de commit 5e91372
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions orb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ commands:
version:
description: Release version
type: string
environment:
description: The environment the build is deploying to
type: env_var_name
default: ENVIRONMENT
organization:
description: Sentry organization slug
type: string
Expand All @@ -125,16 +129,9 @@ commands:
curl -XPOST -s -H 'Content-Type: application/json' \
-H "Authorization: Bearer $<<parameters.api_key>>" --data \
"{
\"version\": \"<<parameters.version>>\",
\"url\":\"$CIRCLE_BUILD_URL\",
\"refs\":[{
\"repository\":\"$CIRCLE_PROJECT_REPONAME\",
\"commit\":\"$CIRCLE_SHA1\"
}],
\"projects\":[
\"$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME\"
]
}" "https://sentry.io/api/0/organizations/<<parameters.organization>>/releases/"
\"environment\":\"$<<parameters.environment>>\",
\"url\":\"$CIRCLE_BUILD_URL\"
}" "https://sentry.io/api/0/organizations/<<parameters.organization>>/releases/$CIRCLE_BRANCH.b$CIRCLE_BUILD_NUM/deploys/"
fi
name: Sentry - Sending Deploy Event
when: on_success
Expand Down

0 comments on commit 5e91372

Please sign in to comment.