Merged in fix/redis-api-set-sentry-environment-via-bicep (pull request #1981)
fix: set sentry environment through bicep deploys * fix: set sentry environment through bicep deploys Approved-by: Anton Gunnarsson
This commit is contained in:
@@ -7,6 +7,8 @@ param containerImageTag string
|
|||||||
param redisConnection string
|
param redisConnection string
|
||||||
param primaryApiKey string
|
param primaryApiKey string
|
||||||
param secondaryApiKey string
|
param secondaryApiKey string
|
||||||
|
|
||||||
|
param sentryEnvironment string
|
||||||
param sentryDSN string
|
param sentryDSN string
|
||||||
param sentryEnabled string
|
param sentryEnabled string
|
||||||
param sentryTraceSampleRate string
|
param sentryTraceSampleRate string
|
||||||
@@ -39,6 +41,7 @@ module containerApp 'containerApp.bicep' = {
|
|||||||
{ name: 'REDIS_CONNECTION', value: redisConnection }
|
{ name: 'REDIS_CONNECTION', value: redisConnection }
|
||||||
{ name: 'PRIMARY_API_KEY', value: primaryApiKey }
|
{ name: 'PRIMARY_API_KEY', value: primaryApiKey }
|
||||||
{ name: 'SECONDARY_API_KEY', value: secondaryApiKey }
|
{ name: 'SECONDARY_API_KEY', value: secondaryApiKey }
|
||||||
|
{ name: 'SENTRY_ENVIRONMENT', value: sentryEnvironment }
|
||||||
{ name: 'SENTRY_DSN', value: sentryDSN }
|
{ name: 'SENTRY_DSN', value: sentryDSN }
|
||||||
{ name: 'SENTRY_ENABLED', value: sentryEnabled }
|
{ name: 'SENTRY_ENABLED', value: sentryEnabled }
|
||||||
{ name: 'SENTRY_TRACE_SAMPLE_RATE', value: sentryTraceSampleRate }
|
{ name: 'SENTRY_TRACE_SAMPLE_RATE', value: sentryTraceSampleRate }
|
||||||
|
|||||||
@@ -8,6 +8,10 @@ param containerImageTag string = 'latest'
|
|||||||
param primaryApiKey string
|
param primaryApiKey string
|
||||||
param secondaryApiKey string
|
param secondaryApiKey string
|
||||||
|
|
||||||
|
param sentryDSN string
|
||||||
|
param sentryEnabled string
|
||||||
|
param sentryTraceSampleRate string
|
||||||
|
|
||||||
@description('The location for the resource group')
|
@description('The location for the resource group')
|
||||||
param location string = 'westeurope'
|
param location string = 'westeurope'
|
||||||
|
|
||||||
@@ -43,5 +47,9 @@ module containerApp 'app/main.bicep' = {
|
|||||||
redisConnection: 'default:${redis.outputs.primaryAccessKey}@${redis.outputs.hostname}:6380'
|
redisConnection: 'default:${redis.outputs.primaryAccessKey}@${redis.outputs.hostname}:6380'
|
||||||
primaryApiKey: primaryApiKey
|
primaryApiKey: primaryApiKey
|
||||||
secondaryApiKey: secondaryApiKey
|
secondaryApiKey: secondaryApiKey
|
||||||
|
sentryEnvironment: environment == 'prod' ? 'production' : 'test'
|
||||||
|
sentryDSN: sentryDSN
|
||||||
|
sentryEnabled: sentryEnabled
|
||||||
|
sentryTraceSampleRate: sentryTraceSampleRate
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user