Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion infra/scripts/docker-build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ function Build-And-Push-Image {

if($CONTAINER_APP_NAME)
{
$timestamp = Get-Date -Format "yyyyMMddHHmmss"
Write-Host "Updating the Container app registry server & image"
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
az containerapp update --name $CONTAINER_APP_NAME --resource-group $AZURE_RESOURCE_GROUP --image $IMAGE_URI --only-show-errors
az containerapp update --name $CONTAINER_APP_NAME --resource-group $AZURE_RESOURCE_GROUP --image $IMAGE_URI --set-env-vars REFRESH_TIMESTAMP=$timestamp --only-show-errors
Write-Host "Updated the registry for Container: $CONTAINER_APP_NAME"
}
}
Expand Down
1 change: 1 addition & 0 deletions infra/scripts/docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ build_and_push_image() {
--name "$CONTAINER_APP" \
--resource-group "$AZURE_RESOURCE_GROUP" \
--image "$IMAGE_URI" \
--set-env-vars REFRESH_TIMESTAMP=$(date +%Y%m%d%H%M%S) \
--only-show-errors

echo "Updated registry for container app: $CONTAINER_APP"
Expand Down
Loading