Skip to content

Commit 68f0c8b

Browse files
authored
fix(azure): rename and fix outputs and pass correct secrets (#416)
1 parent 94b9885 commit 68f0c8b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.azure/infrastructure/main.bicep

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,5 +240,5 @@ module keyVaultReaderAccessPolicy '../modules/keyvault/addReaderRoles.bicep' = {
240240
}
241241

242242
output resourceGroupName string = resourceGroup.name
243-
output containterAppEnvId string = containerAppEnv.outputs.containerAppEnvId
243+
output containerAppEnvId string = containerAppEnv.outputs.containerAppEnvId
244244
output environmentKeyVaultName string = keyVaultModule.outputs.name

.github/workflows/action-deploy-apps.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
with:
9595
azcliversion: 2.56.0
9696
inlineScript: |
97-
az containerapp job start -n ${{ steps.deploy.outputs.migrationJobName }} -g ${{ steps.deploy.outputs.resourceGroupName }}
97+
az containerapp job start -n ${{ steps.deploy.outputs.name }} -g ${{ secrets.AZURE_RESOURCE_GROUP_NAME }}
9898
9999
- name: Verify migration
100100
uses: azure/CLI@v1
@@ -104,7 +104,7 @@ jobs:
104104
with:
105105
azcliversion: ${{ env.AZ_CLI_VERSION }}
106106
inlineScript: |
107-
./.github/tools/containerAppJobVerifier.sh ${{ steps.deploy.outputs.migrationJobName }} ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} ${{ inputs.gitShortSha }}
107+
./.github/tools/containerAppJobVerifier.sh ${{ steps.deploy.outputs.name }} ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} ${{ inputs.gitShortSha }}
108108
109109
- name: Logout from azure
110110
if: ${{failure() || success()}}
@@ -115,7 +115,6 @@ jobs:
115115
name: Deploy ${{ matrix.name }} to ${{ inputs.environment }}
116116
runs-on: ubuntu-latest
117117
needs: deploy-migration-job
118-
if: ${{ !inputs.skip }}
119118
strategy:
120119
fail-fast: true
121120
matrix:

0 commit comments

Comments
 (0)