You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
abp/build/build.ps1

35 lines
770 B

# COMMON PATHS
$buildFolder = (Get-Item -Path ".\" -Verbose).FullName
$slnFolder = Join-Path $buildFolder "..\"
$outputFolder = Join-Path $buildFolder "outputs"
$abpDeskFolder = Join-Path $slnFolder "src/AbpDesk"
$abpDeskWebFolder = Join-Path $abpDeskFolder "AbpDesk.Web.Mvc"
# CLEAR
Remove-Item $outputFolder -Force -Recurse
New-Item -Path $outputFolder -ItemType Directory
# BUILD
Set-Location $slnFolder
dotnet restore
# PUBLISH
Set-Location $abpDeskWebFolder
dotnet publish --output (Join-Path $outputFolder "AbpDesk/Web")
# CREATE DOCKER IMAGES
Set-Location (Join-Path $outputFolder "AbpDesk/Web")
docker rmi abpdesk/web -f
docker build -t abpdesk/web .
Copy-Item (Join-Path $slnFolder "/docker/*.*") $outputFolder
# FINALIZE
Set-Location $outputFolder