Skip to content

Commit 7f5bba1

Browse files
Update deployment workflow to use az containerapp update and change credential to DefaultAzureCredential
1 parent b30530f commit 7f5bba1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/deploy-aca-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
with:
116116
inlineScript: |
117117
az config set extension.use_dynamic_install=yes_without_prompt
118-
az containerapp create -n ${{ env.container-name }} -g ${{ env.resource-group-name }} \
118+
az containerapp update -n ${{ env.container-name }} -g ${{ env.resource-group-name }} \
119119
--image ${{ env.registry-name }}.azurecr.io/${{ env.image-name }}:${{ env.version }}.${{ github.run_number }} \
120120
--environment ${{ env.aca-env-name }} --registry-server ${{ env.registry-name }}.azurecr.io \
121121
--registry-username ${{ env.ACR_USERNAME }} \

Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
{
5757
options.Connect(
5858
new Uri(builder.Configuration["AppConfig:Endpoint"]),
59-
new ManagedIdentityCredential())
59+
new DefaultAzureCredential())
6060
.Select(KeyFilter.Any, label) //filter the keys to only those with the environment label
6161
.ConfigureRefresh(refresh =>
6262
{

0 commit comments

Comments
 (0)