Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sentry #622

Merged
merged 8 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/actions/deploy-portal/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,27 @@ inputs:
NEXT_PUBLIC_CLAIM_TOKENS_URL:
required: true
description: Claim tokens microservice URL
NEXT_PUBLIC_RELEASE_VERSION:
required: false
description: Release version
NEXT_PUBLIC_SENTRY_DSN:
required: false
description: Sentry DSN URL
NEXT_PUBLIC_SENTRY_ENVIRONMENT:
required: false
description: Sentry environment
NEXT_PUBLIC_TRACES_SAMPLE_RATE:
required: false
description: Sentry traces sample rate
SENTRY_AUTH_TOKEN:
required: false
description: Sentry auth token
SENTRY_ORG:
required: false
description: Sentry organization
SENTRY_PROJECT:
required: false
description: Sentry project

runs:
using: composite
Expand All @@ -66,6 +87,13 @@ runs:
NEXT_PUBLIC_ENABLE_ANALYTICS: ${{ inputs.NEXT_PUBLIC_ENABLE_ANALYTICS }}
NEXT_PUBLIC_FEATURE_FLAG_ENABLE_BTC_TUNNEL: ${{ inputs.NEXT_PUBLIC_FEATURE_FLAG_ENABLE_BTC_TUNNEL }}
NEXT_PUBLIC_RECAPTCHA_SITE_KEY: ${{ inputs.NEXT_PUBLIC_RECAPTCHA_SITE_KEY }}
NEXT_PUBLIC_RELEASE_VERSION: ${{ inputs.NEXT_PUBLIC_RELEASE_VERSION }}
NEXT_PUBLIC_SENTRY_DSN: ${{ inputs.NEXT_PUBLIC_SENTRY_DSN }}
NEXT_PUBLIC_SENTRY_ENVIRONMENT: ${{ inputs.NEXT_PUBLIC_SENTRY_ENVIRONMENT }}
NEXT_PUBLIC_TRACES_SAMPLE_RATE: ${{ inputs.NEXT_PUBLIC_TRACES_SAMPLE_RATE }}
SENTRY_AUTH_TOKEN: ${{ inputs.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ inputs.SENTRY_ORG }}
SENTRY_PROJECT: ${{ inputs.SENTRY_PROJECT }}
- name: Check portal build
id: portal_build
uses: andstor/file-existence-action@v3
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/hostinger-deployment-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,19 @@ jobs:
NEXT_PUBLIC_ENABLE_ANALYTICS: true
NEXT_PUBLIC_FEATURE_FLAG_ENABLE_BTC_TUNNEL: false
NEXT_PUBLIC_RECAPTCHA_SITE_KEY: ${{ secrets.NEXT_PUBLIC_RECAPTCHA_SITE_KEY_PROD }}
NEXT_PUBLIC_RELEASE_VERSION: ${{ github.event.release.name }}
NEXT_PUBLIC_SENTRY_DSN: ${{ vars.NEXT_PUBLIC_SENTRY_DSN }}
NEXT_PUBLIC_SENTRY_ENVIRONMENT: production
NEXT_PUBLIC_TRACES_SAMPLE_RATE: 1.0
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }}
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_INTEGRATION_TOKEN }}
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }}
with:
environment: production
version: ${{ github.event.release.name }}
Loading
Loading