diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index ef732f66..6650b63d 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -258,13 +258,13 @@ jobs: creds: ${{ secrets.AZURE_SP }} #Swap staging slots with prod - name: Swap web service staging slot to production - uses: Azure/cli@v2.0.0 + uses: Azure/cli@v3.0.0 with: inlineScript: az webapp deployment slot swap --name "devops-prod-eu-service" --resource-group "devopsmetrics" --slot staging --target-slot production - name: Deploy web service app settings run: az webapp config appsettings set --name "devops-prod-eu-service" --resource-group "devopsmetrics" --settings "AppSettings:AzureDevOpsPatToken=${{ secrets.AzureDevOpsPATToken }}" "AppSettings:GitHubClientId=${{ secrets.GitHubClientId }}" "AppSettings:GitHubClientSecret=${{ secrets.GitHubClientSecret }}" "AppSettings:AzureStorageAccountConfigurationString=${{ secrets.AzureStorageConnectionString }}" - name: Swap web site staging slot to production - uses: Azure/cli@v2.0.0 + uses: Azure/cli@v3.0.0 with: inlineScript: az webapp deployment slot swap --name "devops-prod-eu-web" --resource-group "devopsmetrics" --slot staging --target-slot production - name: Deploy website app settings