Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Use BUILD_TIME as release tag in sentry
Browse files Browse the repository at this point in the history
Falls back to CIRCLE_SHA1
  • Loading branch information
vincemtnz committed Jun 22, 2018
1 parent 40b939d commit 3485f9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ jobs:
- attach_workspace:
at: ~/circleci-champaign
- run: bundle install --path vendor/bundle
- run:
name: Set BUILD_TIME environment variable
command: |
echo 'export BUILD_TIME=$(date +%Y%m%d.%H%M)' >> $BASH_ENV
source $BASH_ENV
- run:
name: Precompile assets
# NOTE: Webpacker runs yarn on asset precompilation so this will install production assets into node_modules!
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/packs/sentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function addReduxState(data) {
}

Raven.config(process.env.SENTRY_DSN, {
release: new Date().toISOString(),
release: process.env.BUILD_TIME || process.env.CIRCLE_SHA1,
environment: process.env.SENTRY_ENVIRONMENT || 'development',
dataCallback: data => {
addUserData(data);
Expand Down

0 comments on commit 3485f9f

Please sign in to comment.