mirror of
https://github.com/bitwarden/server.git
synced 2025-01-22 21:51:22 +01:00
build script
This commit is contained in:
parent
904c29809b
commit
e7625eda86
22
src/EventsProcessor/build.sh
Normal file
22
src/EventsProcessor/build.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user