1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 05:00:19 -05:00

azure build scripts

This commit is contained in:
Kyle Spearrin 2019-07-24 21:59:14 -04:00
parent 48fd3062b6
commit a0da6b3886
4 changed files with 51 additions and 0 deletions

15
src/Admin/build.ps1 Normal file
View File

@ -0,0 +1,15 @@
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
echo "`n## Building Admin"
echo "`nBuilding app"
echo ".NET Core version $(dotnet --version)"
echo "Restore"
dotnet restore $dir\Admin.csproj
echo "Clean"
dotnet clean $dir\Admin.csproj -c "Release" -o $dir\obj\Azure\publish
echo "Node Build"
npm --prefix $dir install $dir
gulp --gulpfile $dir\gulpfile.js build
echo "Publish"
dotnet publish $dir\Admin.csproj -c "Release" -o $dir\obj\Azure\publish

12
src/Billing/build.ps1 Normal file
View File

@ -0,0 +1,12 @@
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
echo "`n## Building Billing"
echo "`nBuilding app"
echo ".NET Core version $(dotnet --version)"
echo "Restore"
dotnet restore $dir\Billing.csproj
echo "Clean"
dotnet clean $dir\Billing.csproj -c "Release" -o $dir\obj\Azure\publish
echo "Publish"
dotnet publish $dir\Billing.csproj -c "Release" -o $dir\obj\Azure\publish

12
src/Events/build.ps1 Normal file
View File

@ -0,0 +1,12 @@
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
echo "`n## Building Events"
echo "`nBuilding app"
echo ".NET Core version $(dotnet --version)"
echo "Restore"
dotnet restore $dir\Events.csproj
echo "Clean"
dotnet clean $dir\Events.csproj -c "Release" -o $dir\obj\Azure\publish
echo "Publish"
dotnet publish $dir\Events.csproj -c "Release" -o $dir\obj\Azure\publish

View File

@ -0,0 +1,12 @@
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
echo "`n## Building Events Processor"
echo "`nBuilding app"
echo ".NET Core version $(dotnet --version)"
echo "Restore"
dotnet restore $dir\EventsProcessor.csproj
echo "Clean"
dotnet clean $dir\EventsProcessor.csproj -c "Release" -o $dir\obj\Azure\publish
echo "Publish"
dotnet publish $dir\EventsProcessor.csproj -c "Release" -o $dir\obj\Azure\publish