Skip to content

Commit 02263b1

Browse files
Merge pull request #186 from microsoft/fdp-changes
fix: Local build issue fixed
2 parents 2497b6e + 736142e commit 02263b1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

infra/scripts/docker-build.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ param (
1111
# Convert USE_LOCAL_BUILD to Boolean
1212
$USE_LOCAL_BUILD = if ($USE_LOCAL_BUILD -match "^(?i:true)$") { $true } else { $false }
1313

14+
if ([string]::IsNullOrEmpty($AZURE_ENV_IMAGETAG)) {
15+
$AZURE_ENV_IMAGETAG = "latest"
16+
}
17+
1418
# Validate required parameters
1519
if (-not $AZURE_SUBSCRIPTION_ID -or -not $ENV_NAME -or -not $AZURE_LOCATION -or -not $AZURE_RESOURCE_GROUP) {
1620
Write-Error "Missing required arguments. Usage: docker-build.ps1 <AZURE_SUBSCRIPTION_ID> <ENV_NAME> <AZURE_LOCATION> <AZURE_RESOURCE_GROUP> <USE_LOCAL_BUILD> <AZURE_ENV_IMAGETAG>"

infra/scripts/docker-build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ AZURE_ENV_IMAGETAG=$6
2424

2525
USE_LOCAL_BUILD=$(echo "$USE_LOCAL_BUILD" | grep -iq "^true$" && echo "true" || echo "false")
2626

27+
AZURE_ENV_IMAGETAG=${AZURE_ENV_IMAGETAG:-latest}
28+
2729
if [ "$USE_LOCAL_BUILD" = "true" ]; then
2830
echo "Local Build enabled. Starting build process."
2931
az account set --subscription "$AZURE_SUBSCRIPTION_ID"

0 commit comments

Comments
 (0)