From d74babb3e66d7480abd972b6526cee307e4147e1 Mon Sep 17 00:00:00 2001 From: Benjamin Michaelis Date: Wed, 20 Dec 2023 10:25:57 -0800 Subject: [PATCH] Add all --- .github/workflows/Build-Test-And-Deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Build-Test-And-Deploy.yml b/.github/workflows/Build-Test-And-Deploy.yml index 892c6278..7ee68aab 100644 --- a/.github/workflows/Build-Test-And-Deploy.yml +++ b/.github/workflows/Build-Test-And-Deploy.yml @@ -125,7 +125,8 @@ jobs: inlineScript: | 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 + 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