From 035ee31b500029d9d023393522b95a0b2ee76ecd Mon Sep 17 00:00:00 2001 From: "Matt Wicks [SSW]" Date: Tue, 21 Nov 2023 11:38:05 +1100 Subject: [PATCH] Fix infra deployment (#1738) * Workflow - Fix deployment target name to staging * Infra - staging slot - add reference to parent --- .github/workflows/main-build-and-deploy.yml | 2 +- infra/appService.bicep | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main-build-and-deploy.yml b/.github/workflows/main-build-and-deploy.yml index 8e7fbf558c..76a0e0fabc 100644 --- a/.github/workflows/main-build-and-deploy.yml +++ b/.github/workflows/main-build-and-deploy.yml @@ -42,7 +42,7 @@ jobs: path: ./.github load-mode: strict - - name: Deploy to production + - name: Deploy to staging id: deploy uses: ./.github/actions/deploy with: diff --git a/infra/appService.bicep b/infra/appService.bicep index 5bf5695d92..d722d8790b 100644 --- a/infra/appService.bicep +++ b/infra/appService.bicep @@ -152,6 +152,7 @@ resource appService 'Microsoft.Web/sites@2022-03-01' = { } resource stagingSlot 'Microsoft.Web/sites/slots@2022-09-01' = { + parent: appService name: '${productionName}-staging' location: location kind: kind