You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: infra/scripts/docker-build.ps1
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -39,9 +39,10 @@ function Build-And-Push-Image {
39
39
40
40
if($CONTAINER_APP_NAME)
41
41
{
42
+
$timestamp=Get-Date-Format "yyyyMMddHHmmss"
42
43
Write-Host"Updating the Container app registry server & image"
43
44
az containerapp registry set --name $CONTAINER_APP_NAME--resource-group $AZURE_RESOURCE_GROUP--server "$ACR_NAME.azurecr.io"--identity $CONTAINER_APP_USER_IDENTITY_ID--only-show-errors
44
-
az containerapp update --name $CONTAINER_APP_NAME--resource-group $AZURE_RESOURCE_GROUP--image $IMAGE_URI--only-show-errors
45
+
az containerapp update --name $CONTAINER_APP_NAME--resource-group $AZURE_RESOURCE_GROUP--image $IMAGE_URI--set-env-vars REFRESH_TIMESTAMP=$timestamp--only-show-errors
45
46
Write-Host"Updated the registry for Container: $CONTAINER_APP_NAME"
0 commit comments