From 7ad3c4785b6ce915c1e3b8e1c2f41eea0fd4438c Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 23 Aug 2017 22:22:15 -0400 Subject: [PATCH] build script updates --- src/Api/build.ps1 | 4 +++- src/Api/build.sh | 6 ++++-- src/Identity/build.ps1 | 4 +++- src/Identity/build.sh | 6 ++++-- util/Attachments/build.ps1 | 2 +- util/Attachments/build.sh | 2 +- util/MsSql/build.ps1 | 2 +- util/MsSql/build.sh | 2 +- util/Nginx/build.ps1 | 2 +- util/Nginx/build.sh | 2 +- util/Server/build.ps1 | 4 +++- util/Server/build.sh | 6 ++++-- util/Setup/build.ps1 | 4 +++- util/Setup/build.sh | 6 ++++-- 14 files changed, 34 insertions(+), 18 deletions(-) diff --git a/src/Api/build.ps1 b/src/Api/build.ps1 index 77818d5f28..eb1402f0e5 100644 --- a/src/Api/build.ps1 +++ b/src/Api/build.ps1 @@ -1,11 +1,13 @@ $dir = Split-Path -Parent $MyInvocation.MyCommand.Path -echo "`n# Building API" +echo "`n## Building API" echo "`nBuilding app" echo ".NET Core version $(dotnet --version)" +echo "Clean" dotnet clean $dir\Api.csproj -f netcoreapp2.0 -c "Release" -o $dir\obj\Docker\publish\Api dotnet clean $dir\..\Jobs\Jobs.csproj -f netcoreapp2.0 -c "Release" -o $dir\obj\Docker\publish\Jobs +echo "Publish" dotnet publish $dir\Api.csproj -f netcoreapp2.0 -c "Release" -o $dir\obj\Docker\publish\Api dotnet publish $dir\..\Jobs\Jobs.csproj -f netcoreapp2.0 -c "Release" -o $dir\obj\Docker\publish\Jobs diff --git a/src/Api/build.sh b/src/Api/build.sh index f8319422e6..54889899c7 100755 --- a/src/Api/build.sh +++ b/src/Api/build.sh @@ -3,12 +3,14 @@ set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -echo -e "\n# Building API" +echo -e "\n## Building API" echo -e "\nBuilding app" -echo -e ".NET Core version $(dotnet --version)" +echo ".NET Core version $(dotnet --version)" +echo "Clean" dotnet clean $DIR/Api.csproj -f netcoreapp2.0 -c "Release" -o $DIR/obj/Docker/publish/Api dotnet clean $DIR/../Jobs/Jobs.csproj -f netcoreapp2.0 -c "Release" -o $DIR/obj/Docker/publish/Jobs +echo "Publish" dotnet publish $DIR/Api.csproj -f netcoreapp2.0 -c "Release" -o $DIR/obj/Docker/publish/Api dotnet publish $DIR/../Jobs/Jobs.csproj -f netcoreapp2.0 -c "Release" -o $DIR/obj/Docker/publish/Jobs diff --git a/src/Identity/build.ps1 b/src/Identity/build.ps1 index bacc813bfd..8a5e5b369d 100644 --- a/src/Identity/build.ps1 +++ b/src/Identity/build.ps1 @@ -1,10 +1,12 @@ $dir = Split-Path -Parent $MyInvocation.MyCommand.Path -echo "`n# Building Identity" +echo "`n## Building Identity" echo "`nBuilding app" echo ".NET Core version $(dotnet --version)" +echo "Clean" dotnet clean $dir\Identity.csproj -f netcoreapp2.0 -c "Release" -o $dir\obj\Docker\publish +echo "Publish" dotnet publish $dir\Identity.csproj -f netcoreapp2.0 -c "Release" -o $dir\obj\Docker\publish echo "`nBuilding docker image" diff --git a/src/Identity/build.sh b/src/Identity/build.sh index 7bdc44bf6e..225b977049 100755 --- a/src/Identity/build.sh +++ b/src/Identity/build.sh @@ -3,11 +3,13 @@ set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -echo -e "\n# Building Identity" +echo -e "\n## Building Identity" echo -e "\nBuilding app" -echo -e ".NET Core version $(dotnet --version)" +echo ".NET Core version $(dotnet --version)" +echo "Clean" dotnet clean $DIR/Identity.csproj -f netcoreapp2.0 -c "Release" -o $DIR/obj/Docker/publish +echo "Publish" dotnet publish $DIR/Identity.csproj -f netcoreapp2.0 -c "Release" -o $DIR/obj/Docker/publish echo -e "\nBuilding docker image" diff --git a/util/Attachments/build.ps1 b/util/Attachments/build.ps1 index 6f7faef994..78c53a6dfb 100644 --- a/util/Attachments/build.ps1 +++ b/util/Attachments/build.ps1 @@ -1,6 +1,6 @@ $dir = Split-Path -Parent $MyInvocation.MyCommand.Path -echo "`n# Building Attachments" +echo "`n## Building Attachments" echo "`nBuilding docker image" docker --version diff --git a/util/Attachments/build.sh b/util/Attachments/build.sh index 0f2ab42dcf..a5299c99cc 100755 --- a/util/Attachments/build.sh +++ b/util/Attachments/build.sh @@ -3,7 +3,7 @@ set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -echo -e "\n# Building Attachments" +echo -e "\n## Building Attachments" echo -e "\nBuilding docker image" docker --version diff --git a/util/MsSql/build.ps1 b/util/MsSql/build.ps1 index 2330caffa1..938259ad2c 100644 --- a/util/MsSql/build.ps1 +++ b/util/MsSql/build.ps1 @@ -1,6 +1,6 @@ $dir = Split-Path -Parent $MyInvocation.MyCommand.Path -echo "`n# Building MsSql" +echo "`n## Building MsSql" echo "`nBuilding docker image" docker --version diff --git a/util/MsSql/build.sh b/util/MsSql/build.sh index 07ee41325e..9dc387b677 100755 --- a/util/MsSql/build.sh +++ b/util/MsSql/build.sh @@ -3,7 +3,7 @@ set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -echo -e "\n# Building MsSql" +echo -e "\n## Building MsSql" echo -e "\nBuilding docker image" docker --version diff --git a/util/Nginx/build.ps1 b/util/Nginx/build.ps1 index 4857456ce5..b8710214f3 100644 --- a/util/Nginx/build.ps1 +++ b/util/Nginx/build.ps1 @@ -1,6 +1,6 @@ $dir = Split-Path -Parent $MyInvocation.MyCommand.Path -echo "`n# Building nginx" +echo "`n## Building nginx" echo "`nBuilding docker image" docker --version diff --git a/util/Nginx/build.sh b/util/Nginx/build.sh index 201a1e4c4c..3249f849fa 100755 --- a/util/Nginx/build.sh +++ b/util/Nginx/build.sh @@ -3,7 +3,7 @@ set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -echo -e "\n# Building nginx" +echo -e "\n## Building nginx" echo -e "\nBuilding docker image" docker --version diff --git a/util/Server/build.ps1 b/util/Server/build.ps1 index d066937fe0..43ea3680c4 100644 --- a/util/Server/build.ps1 +++ b/util/Server/build.ps1 @@ -1,10 +1,12 @@ $dir = Split-Path -Parent $MyInvocation.MyCommand.Path -echo "`n# Building Server" +echo "`n## Building Server" echo "`nBuilding app" echo ".NET Core version $(dotnet --version)" +echo "Clean" dotnet clean $dir\Server.csproj -c "Release" -o $dir\obj\Docker\publish +echo "Publish" dotnet publish $dir\Server.csproj -c "Release" -o $dir\obj\Docker\publish echo "`nBuilding docker image" diff --git a/util/Server/build.sh b/util/Server/build.sh index 5a3b331e39..1568baef0e 100755 --- a/util/Server/build.sh +++ b/util/Server/build.sh @@ -3,11 +3,13 @@ set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -echo -e "\n# Building Server" +echo -e "\n## Building Server" echo -e "\nBuilding app" -echo -e ".NET Core version $(dotnet --version)" +echo ".NET Core version $(dotnet --version)" +echo "Clean" dotnet clean $DIR/Server.csproj -c "Release" -o $DIR/obj/Docker/publish +echo "Publish" dotnet publish $DIR/Server.csproj -c "Release" -o $DIR/obj/Docker/publish echo -e "\nBuilding docker image" diff --git a/util/Setup/build.ps1 b/util/Setup/build.ps1 index e83577ec8f..59e7b60a6f 100644 --- a/util/Setup/build.ps1 +++ b/util/Setup/build.ps1 @@ -1,10 +1,12 @@ $dir = Split-Path -Parent $MyInvocation.MyCommand.Path -echo "`n# Building Setup" +echo "`n## Building Setup" echo "`nBuilding app" echo ".NET Core version $(dotnet --version)" +echo "Clean" dotnet clean $dir\Setup.csproj -f netcoreapp2.0 -c "Release" -o $dir\obj\Docker\publish +echo "Publish" dotnet publish $dir\Setup.csproj -f netcoreapp2.0 -c "Release" -o $dir\obj\Docker\publish echo "`nBuilding docker image" diff --git a/util/Setup/build.sh b/util/Setup/build.sh index dde74705bf..8a3335af81 100755 --- a/util/Setup/build.sh +++ b/util/Setup/build.sh @@ -3,11 +3,13 @@ set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -echo -e "\n# Building Setup" +echo -e "\n## Building Setup" echo -e "\nBuilding app" -echo -e ".NET Core version $(dotnet --version)" +echo ".NET Core version $(dotnet --version)" +echo "Clean" dotnet clean $DIR/Setup.csproj -f netcoreapp2.0 -c "Release" -o $DIR/obj/Docker/publish +echo "Publish" dotnet publish $DIR/Setup.csproj -f netcoreapp2.0 -c "Release" -o $DIR/obj/Docker/publish echo -e "\nBuilding docker image"