add sentry CLI to github actions

This commit is contained in:
Amruth Pillai
2022-11-24 11:42:03 +01:00
parent 0da23f95fd
commit 43c09666a0
3 changed files with 17 additions and 2 deletions

View File

@ -48,6 +48,13 @@ jobs:
username: $GITHUB_REPOSITORY_OWNER
password: ${{ secrets.GH_TOKEN }}
- name: Setup Sentry CLI
uses: mathieu-bour/setup-sentry-cli@v1.3.0
with:
token: ${{ secrets.SENTRY_TOKEN }}
organization: reactive-resume
project: ${{ matrix.image }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v3.2.0
with:

View File

@ -1,7 +1,11 @@
import env from '@beam-australia/react-env';
import * as Sentry from '@sentry/nextjs';
const sentryDSN =
env('CLIENT_SENTRY_DSN') ||
'https://aceffdbdaa544768bc85216e7c6a9c50@o4504211187564544.ingest.sentry.io/4504213380071424';
Sentry.init({
dsn: env('CLIENT_SENTRY_DSN'),
dsn: sentryDSN,
tracesSampleRate: 1.0,
});

View File

@ -1,7 +1,11 @@
import env from '@beam-australia/react-env';
import * as Sentry from '@sentry/nextjs';
const sentryDSN =
env('CLIENT_SENTRY_DSN') ||
'https://aceffdbdaa544768bc85216e7c6a9c50@o4504211187564544.ingest.sentry.io/4504213380071424';
Sentry.init({
dsn: env('CLIENT_SENTRY_DSN'),
dsn: sentryDSN,
tracesSampleRate: 1.0,
});