mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 08:13:49 +10:00
add sentry CLI to github actions
This commit is contained in:
7
.github/workflows/docker-build-push.yml
vendored
7
.github/workflows/docker-build-push.yml
vendored
@ -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:
|
||||
|
||||
@ -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,
|
||||
});
|
||||
|
||||
@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user