Commit 1bf1e2e
authored
Fix missing container image deployment to production by importing from staging registry (#710)
### Summary & Motivation
Fix an issue where container images were not deployed to production due
to a leftover configuration from when staging and production shared a
container registry. Previously, images were only pushed to the staging
registry, but the production deployment did not retrieve them.
This change ensures that production images are correctly imported from
the staging container registry using `az acr import`. This avoids
redundant builds while ensuring that production always gets the correct
image version.
Key changes:
- Removed the unused `latest` tag from the build step to prevent
unintended overwrites.
- Added an `az acr import` step to pull images from the staging
container registry into production.
- Introduced logic to authenticate against both staging and production
Azure subscriptions.
- Masked the staging subscription token in GitHub Actions for security.
### Checklist
- [x] I have added tests, or done manual regression tests
- [x] I have updated the documentation, if necessary1 file changed
+30
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
| |||
106 | 105 | | |
107 | 106 | | |
108 | 107 | | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
116 | 132 | | |
117 | 133 | | |
118 | 134 | | |
119 | 135 | | |
120 | 136 | | |
121 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
122 | 150 | | |
123 | 151 | | |
124 | 152 | | |
| |||
0 commit comments