Skip to content

Commit

Permalink
Add all
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminMichaelis committed Dec 20, 2023
1 parent bb5d423 commit d74babb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/Build-Test-And-Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d74babb

Please sign in to comment.