Skip to content

Commit

Permalink
More bicep fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeGinnivan committed Aug 20, 2024
1 parent bc5d0f1 commit 2202c4b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 11 additions & 1 deletion infra/app/ddd.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ param name string
param location string = resourceGroup().location
param tags object = {}

param environment string
param identityName string
param containerRegistryName string
param containerAppsEnvironmentName string
Expand Down Expand Up @@ -41,6 +40,9 @@ resource acrPullRole 'Microsoft.Authorization/roleAssignments@2022-04-01' = {
}
}

@secure()
param sessionSecret string = uniqueString(newGuid())

module fetchLatestImage '../modules/fetch-container-image.bicep' = {
name: '${name}-fetch-image'
params: {
Expand Down Expand Up @@ -77,6 +79,10 @@ resource app 'Microsoft.App/containerApps@2024-03-01' = {
name: 'github-token'
value: gitHubToken
}
{
name: 'session-secret'
value: sessionSecret
}
]
}
secrets
Expand Down Expand Up @@ -106,6 +112,10 @@ resource app 'Microsoft.App/containerApps@2024-03-01' = {
name: 'GITHUB_TOKEN',
secretRef: 'github-token'
}
{
name: 'SESSION_SECRET',
secretRef: 'session-secret'
}
]

resources: {
Expand Down
1 change: 0 additions & 1 deletion infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ module ddd './app/ddd.bicep' = {
containerAppsEnvironmentName: appsEnv.outputs.name
containerRegistryName: registry.outputs.name
exists: dddExists
environment: environmentName
gitHubOrganization: gitHubOrganization
gitHubRepo: gitHubRepo
gitHubToken: gitHubToken
Expand Down

0 comments on commit 2202c4b

Please sign in to comment.