remove -buildBits paramater (no longer used)

This commit is contained in:
Eduard Tomàs 2018-01-11 11:14:25 +01:00
parent eb742bb662
commit 33d066389d

View File

@ -8,7 +8,6 @@ Param(
[parameter(Mandatory=$false)][string]$imageTag, [parameter(Mandatory=$false)][string]$imageTag,
[parameter(Mandatory=$false)][bool]$deployCI=$false, [parameter(Mandatory=$false)][bool]$deployCI=$false,
[parameter(Mandatory=$false)][bool]$buildImages=$true, [parameter(Mandatory=$false)][bool]$buildImages=$true,
[parameter(Mandatory=$false)][bool]$buildBits=$false,
[parameter(Mandatory=$false)][bool]$deployInfrastructure=$true, [parameter(Mandatory=$false)][bool]$deployInfrastructure=$true,
[parameter(Mandatory=$false)][string]$dockerOrg="eshop" [parameter(Mandatory=$false)][string]$dockerOrg="eshop"
) )
@ -50,7 +49,6 @@ if(-not $deployCI) {
} }
} }
else { else {
$buildBits = false;
$buildImages = false; # Never build images through CI, as they previously built $buildImages = false; # Never build images through CI, as they previously built
} }
@ -60,11 +58,7 @@ if ([string]::IsNullOrEmpty($imageTag)) {
} }
Write-Host "Docker image Tag: $imageTag" -ForegroundColor Yellow Write-Host "Docker image Tag: $imageTag" -ForegroundColor Yellow
# building and publishing docker images if needed # building docker images if needed
if($buildBits) {
Write-Host "Building and publishing eShopOnContainers..." -ForegroundColor Yellow
dotnet publish -c Release -o obj/Docker/publish ../eShopOnContainers-ServicesAndWebApps.sln
}
if ($buildImages) { if ($buildImages) {
Write-Host "Building Docker images tagged with '$imageTag'" -ForegroundColor Yellow Write-Host "Building Docker images tagged with '$imageTag'" -ForegroundColor Yellow
$env:TAG=$imageTag $env:TAG=$imageTag