diff --git a/.github/workflows/Build-Test-And-Deploy.yml b/.github/workflows/Build-Test-And-Deploy.yml index 7ee68aab..7d22b900 100644 --- a/.github/workflows/Build-Test-And-Deploy.yml +++ b/.github/workflows/Build-Test-And-Deploy.yml @@ -126,7 +126,6 @@ jobs: az config set extension.use_dynamic_install=yes_without_prompt az containerapp up -n $CONTAINER_APP_NAME -g $RESOURCEGROUP --image $CONTAINER_REGISTRY/essentialcsharpweb:${{ github.sha }} --environment $CONTAINER_APP_ENVIRONMENT --registry-server $CONTAINER_REGISTRY --ingress external --registry-username $ACR_USERNAME --registry-password $ACR_PASSWORD az containerapp secret set -n $CONTAINER_APP_NAME -g $RESOURCEGROUP --secrets github-clientid=keyvaultref:$KEYVAULTURI/secrets/authentication-github-clientid,identityref:$MANAGEDIDENTITYID github-clientsecret=keyvaultref:$KEYVAULTURI/secrets/authentication-github-clientsecret,identityref:$MANAGEDIDENTITYID msft-clientid=keyvaultref:$KEYVAULTURI/secrets/authentication-microsoft-clientid,identityref:$MANAGEDIDENTITYID msft-clientsecret=keyvaultref:$KEYVAULTURI/secrets/authentication-microsoft-clientsecret,identityref:$MANAGEDIDENTITYID emailsender-apikey=keyvaultref:$KEYVAULTURI/secrets/emailsender-apikey,identityref:$MANAGEDIDENTITYID emailsender-secret=keyvaultref:$KEYVAULTURI/secrets/emailsender-secretkey,identityref:$MANAGEDIDENTITYID emailsender-name=keyvaultref:$KEYVAULTURI/secrets/emailsender-sendfromname,identityref:$MANAGEDIDENTITYID emailsender-email=keyvaultref:$KEYVAULTURI/secrets/emailsender-sendfromemail,identityref:$MANAGEDIDENTITYID connectionstring=keyvaultref:$KEYVAULTURI/secrets/connectionstrings-essentialcsharpwebcontextconnection,identityref:$MANAGEDIDENTITYID - az containerapp update --container-name $CONTAINER_APP_NAME --replace-env-vars Authentication:github:clientId=secretref:github-clientid Authentication:github:clientSecret=secretref:github-clientsecret Authentication:microsoft:clientId=secretref:msft-clientid Authentication:microsoft:clientSecret=secretref:msft-clientsecret AuthMessageSender:ApiKey=secretref:emailsender-apikey AuthMessageSender:SecretKey=secretref:emailsender-secret AuthMessageSender:SendFromName=secretref:emailsender-name AuthMessageSender:SendFromEmail=secretref:emailsender-email ConnectionStrings:EssentialCSharpWebContextConnection=secretref:connectionstring - name: Logout of Azure CLI if: 'always()' uses: azure/CLI@v1