File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff 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
1519if (-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>"
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ AZURE_ENV_IMAGETAG=$6
2424
2525USE_LOCAL_BUILD=$( echo " $USE_LOCAL_BUILD " | grep -iq " ^true$" && echo " true" || echo " false" )
2626
27+ AZURE_ENV_IMAGETAG=${AZURE_ENV_IMAGETAG:- latest}
28+
2729if [ " $USE_LOCAL_BUILD " = " true" ]; then
2830 echo " Local Build enabled. Starting build process."
2931 az account set --subscription " $AZURE_SUBSCRIPTION_ID "
You can’t perform that action at this time.
0 commit comments