1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-22 21:51:22 +01:00

build script

This commit is contained in:
Kyle Spearrin 2019-10-04 13:46:46 -04:00
parent 904c29809b
commit e7625eda86

View File

@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo -e "\n## Building Event Processor"
echo -e "\nBuilding app"
echo ".NET Core version $(dotnet --version)"
echo "Restore"
dotnet restore $DIR/Icons.csproj
echo "Clean"
dotnet clean $DIR/Icons.csproj -c "Release" -o $DIR/obj/Docker/publish
echo "Publish"
dotnet publish $DIR/Icons.csproj -c "Release" -o $DIR/obj/Docker/publish
if [ "$1" != "nodocker" ]
then
echo -e "\nBuilding docker image"
docker --version
docker build -t bitwarden/icons $DIR/.
fi