Skip to content

Commit

Permalink
renamings and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
arealmaas committed Feb 2, 2024
1 parent f124527 commit 551c308
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 8 deletions.
12 changes: 12 additions & 0 deletions .azure/applications/web-api-eu/staging.bicepparam
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using './main.bicep'

param environment = 'staging'
param location = 'norwayeast'
param gitSha = readEnvironmentVariable('GIT_SHA', '')
param imageTag = readEnvironmentVariable('IMAGE_TAG', '')

// secrets
param environmentKeyVaultName = readEnvironmentVariable('ENVIRONMENT_KEY_VAULT_NAME', '')
param containerAppEnvironmentId = readEnvironmentVariable('CONTAINTER_APP_ENVIRONMENT_ID', '')
param appInsightConnectionString = readEnvironmentVariable('APP_INSIGHTS_CONNECTION_STRING', '')
param appConfigurationName = readEnvironmentVariable('APP_CONFIGURATION_NAME', '')
9 changes: 9 additions & 0 deletions .azure/applications/web-api-migration-job/staging.bicepparam
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using './main.bicep'

param environment = 'staging'
param location = 'norwayeast'
param imageTag = readEnvironmentVariable('IMAGE_TAG', '')
param containerAppEnvironmentId = readEnvironmentVariable('CONTAINTER_APP_ENVIRONMENT_ID', '')

//secrets
param adoConnectionStringSecretUri = readEnvironmentVariable('ADO_CONNECTION_STRING_SECRET_URI', '')
12 changes: 12 additions & 0 deletions .azure/applications/web-api-so/staging.bicepparam
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using './main.bicep'

param environment = 'staging'
param location = 'norwayeast'
param gitSha = readEnvironmentVariable('GIT_SHA', '')
param imageTag = readEnvironmentVariable('IMAGE_TAG', '')

// secrets
param environmentKeyVaultName = readEnvironmentVariable('ENVIRONMENT_KEY_VAULT_NAME', '')
param containerAppEnvironmentId = readEnvironmentVariable('CONTAINTER_APP_ENVIRONMENT_ID', '')
param appInsightConnectionString = readEnvironmentVariable('APP_INSIGHTS_CONNECTION_STRING', '')
param appConfigurationName = readEnvironmentVariable('APP_CONFIGURATION_NAME', '')
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using '../infrastructure.bicep'
using './main.bicep'

param environment = 'production'
param location = 'norwayeast'
param keyVaultSourceKeys = json(readEnvironmentVariable('KEY_VAULT_SOURCE_KEYS', '[]'))
param gitSha = readEnvironmentVariable('GIT_SHA', '')

// secrets
param dialogportenPgAdminPassword = readEnvironmentVariable('PG_ADMIN_PASSWORD', '')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using '../infrastructure.bicep'
using './main.bicep'

param environment = 'soak'
param location = 'norwayeast'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using '../infrastructure.bicep'
using './main.bicep'

param environment = 'staging'
param location = 'norwayeast'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using '../infrastructure.bicep'
using './main.bicep'

param environment = 'test'
param location = 'norwayeast'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/action-build-infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: Lint Bicep files
run: az bicep build --file .azure/infrastructure.bicep
run: az bicep build --file .azure/infrastructure/main.bicep

# todo: run deployment with Validate deployment mode to send a preflight request to Azure Resource Manager

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/action-deploy-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ jobs:
SOURCE_KEY_VAULT_NAME: ${{ secrets.AZURE_SOURCE_KEY_VAULT_NAME }}
with:
scope: subscription
template: ./.azure/infrastructure.bicep
template: ./.azure/infrastructure/main.bicep
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
deploymentMode: Incremental
deploymentName: dp-be-${{ inputs.environment }}-${{ github.sha }}
region: ${{ inputs.region }}
failOnStdErr: true
additionalArguments: "${{inputs.dryRun && '--what-if'}}"
parameters: ./.azure/environments/${{ inputs.environment }}.bicepparam
parameters: ./.azure/infrastructure/${{ inputs.environment }}.bicepparam

- name: Logout from azure
if: ${{failure() || success()}}
Expand Down

0 comments on commit 551c308

Please sign in to comment.