eShopOnContainers/cli-windows/build-images.ps1
Eduard Tomas 018f6e9342 Minor issues fixed
Use current branch as tag
2017-06-19 19:01:00 +02:00

11 lines
336 B
PowerShell

Param([string] $imageTag)
$scriptPath = Split-Path $script:MyInvocation.MyCommand.Path
if ([string]::IsNullOrEmpty($imageTag)) {
$imageTag = $(git rev-parse --abbrev-ref HEAD)
}
Write-Host "Building images with tag $imageTag" -ForegroundColor Yellow
$env:TAG=$imageTag
docker-compose -f "$scriptPath\..\docker-compose.yml" build