Skip to content

Commit 519753f

Browse files
authored
Fix production deployments failing due to missing -global suffix in staging registry reference (#803)
### Summary & Motivation Fix production container deployments failing to import images from the staging registry. The `STAGING_REGISTRY_ID` in `_deploy-container.yml` was missing the `-global` suffix in the resource group name, a bug introduced in #793 when the global resource group was renamed. This is currently preventing all deployments to production. - Update resource group reference from `{prefix}-stage` to `{prefix}-stage-global` to match the actual location of the staging container registry ### Checklist - [x] I have added tests, or done manual regression tests - [x] I have updated the documentation, if necessary
2 parents 4ff2860 + 3414cf7 commit 519753f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/_deploy-container.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
- name: Import Container Image from Staging to Production
7272
if: inputs.azure_environment == 'prod'
7373
run: |
74-
STAGING_REGISTRY_ID="/subscriptions/${{ vars.STAGING_SUBSCRIPTION_ID }}/resourceGroups/${{ env.UNIQUE_PREFIX }}-stage/providers/Microsoft.ContainerRegistry/registries/${{ env.UNIQUE_PREFIX }}stage"
74+
STAGING_REGISTRY_ID="/subscriptions/${{ vars.STAGING_SUBSCRIPTION_ID }}/resourceGroups/${{ env.UNIQUE_PREFIX }}-stage-global/providers/Microsoft.ContainerRegistry/registries/${{ env.UNIQUE_PREFIX }}stage"
7575
7676
az acr import \
7777
--name ${{ env.UNIQUE_PREFIX }}${{ env.ENVIRONMENT }} \

0 commit comments

Comments
 (0)