Skip to content

Commit

Permalink
More env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeGinnivan committed Nov 15, 2024
1 parent 8bef4ce commit 62dabe8
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
EVENTS_AIR_CLIENT_SECRET: ${{ secrets.EVENTS_AIR_CLIENT_SECRET }}
EVENTS_AIR_TENANT_ID: ${{ secrets.EVENTS_AIR_TENANT_ID }}
EVENTS_AIR_EVENT_ID: ${{ secrets.EVENTS_AIR_EVENT_ID }}
TITO_SECURITY_TOKEN: ${{ secrets.TITO_SECURITY_TOKEN }}

steps:
- name: Checkout
Expand Down
26 changes: 26 additions & 0 deletions infra/app/ddd.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ param eventsAirClientId string
param eventsAirClientSecret string
param eventsAirTenantId string
param eventsAirEventId string
@secure()
param titoSecurityToken string

resource identity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = {
name: identityName
Expand Down Expand Up @@ -125,6 +127,10 @@ resource app 'Microsoft.App/containerApps@2024-03-01' = {
name: 'events-air-event-id'
value: eventsAirEventId
}
{
name: 'tito-security-token'
value: titoSecurityToken
}
]
}
template: {
Expand Down Expand Up @@ -165,6 +171,26 @@ resource app 'Microsoft.App/containerApps@2024-03-01' = {
name: 'GOOGLE_FORMS_FILE_ID'
secretRef: 'google-forms-file-id'
}
{
name: 'TITO_SECURITY_TOKEN'
secretRef: 'tito-security-token'
}
{
name: 'EVENTS_AIR_CLIENT_ID'
secretRef: 'events-air-client-id'
}
{
name: 'EVENTS_AIR_CLIENT_SECRET'
secretRef: 'events-air-client-secret'
}
{
name: 'EVENTS_AIR_TENANT_ID'
secretRef: 'events-air-tenant-id'
}
{
name: 'EVENTS_AIR_EVENT_ID'
secretRef: 'events-air-event-id'
}
]

resources: {
Expand Down
4 changes: 4 additions & 0 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ param eventsAirClientId string
param eventsAirClientSecret string
param eventsAirTenantId string
param eventsAirEventId string
@secure()
param titoSecurityToken string


// Tags that should be applied to all resources.
//
Expand Down Expand Up @@ -135,6 +138,7 @@ module ddd './app/ddd.bicep' = {
eventsAirClientSecret: eventsAirClientSecret
eventsAirTenantId: eventsAirTenantId
eventsAirEventId: eventsAirEventId
titoSecurityToken: titoSecurityToken
}
scope: rg
}
Expand Down
3 changes: 3 additions & 0 deletions infra/main.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
},
"eventsAirEventId": {
"value": "${EVENTS_AIR_EVENT_ID}"
},
"titoSecurityToken": {
"value": "${TITO_SECURITY_TOKEN}"
}
}
}
1 change: 1 addition & 0 deletions website/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ EVENTS_AIR_CLIENT_ID=
EVENTS_AIR_CLIENT_SECRET=
EVENTS_AIR_TENANT_ID=
EVENTS_AIR_EVENT_ID=
TITO_SECURITY_TOKEN=

0 comments on commit 62dabe8

Please sign in to comment.