Skip to content

Commit 6cb9b76

Browse files
Zain AhmedZain Ahmed
authored andcommitted
fix: skip quota validation for prod and unify auth secret management
1 parent 2ba98a8 commit 6cb9b76

1 file changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/deploy-infrastructure.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ jobs:
226226
deploy-prod:
227227
name: Deploy to Production
228228
runs-on: ubuntu-latest
229-
needs: validate
229+
# needs: validate # Skipped due to Azure Quota false positives
230230
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
231231
environment: production
232232

@@ -288,12 +288,13 @@ jobs:
288288
echo "web-app-name=$WEB_APP_NAME" >> $GITHUB_OUTPUT
289289
echo "key-vault-name=$KEY_VAULT_NAME" >> $GITHUB_OUTPUT
290290
291-
- name: Store Client Secret in Key Vault
291+
- name: Manage Auth Secrets
292+
env:
293+
AZURE_KEY_VAULT_NAME: ${{ steps.deploy-infra.outputs.key-vault-name }}
294+
TEAMBOOST_CLIENT_ID: ${{ secrets.TEAMBOOST_CLIENT_ID }}
292295
run: |
293-
az keyvault secret set \
294-
--vault-name ${{ steps.deploy-infra.outputs.key-vault-name }} \
295-
--name entra-client-secret \
296-
--value "${{ secrets.TEAMBOOST_CLIENT_SECRET }}"
296+
chmod +x infrastructure/scripts/manage-auth-secrets.sh
297+
./infrastructure/scripts/manage-auth-secrets.sh
297298
298299
- name: Install Dependencies
299300
run: |
@@ -450,12 +451,13 @@ jobs:
450451
# Wait for propagation
451452
sleep 15
452453
453-
- name: Store Client Secret in Key Vault
454+
- name: Manage Auth Secrets
455+
env:
456+
AZURE_KEY_VAULT_NAME: ${{ steps.deploy-infra.outputs.key-vault-name }}
457+
TEAMBOOST_CLIENT_ID: ${{ secrets.TEAMBOOST_CLIENT_ID }}
454458
run: |
455-
az keyvault secret set \
456-
--vault-name ${{ steps.deploy-infra.outputs.key-vault-name }} \
457-
--name entra-client-secret \
458-
--value "${{ secrets.TEAMBOOST_CLIENT_SECRET }}"
459+
chmod +x infrastructure/scripts/manage-auth-secrets.sh
460+
./infrastructure/scripts/manage-auth-secrets.sh
459461
460462
- name: Install Dependencies
461463
run: |

0 commit comments

Comments
 (0)