mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 16:12:49 -05:00
Bitwarden Unified Self-Host project (#2410)
This commit is contained in:
@ -22,27 +22,26 @@ build() {
|
||||
PROJECT=$1; shift
|
||||
|
||||
case "$PROJECT" in
|
||||
"api" | "Api") build Api $PWD/src/Api ;;
|
||||
"admin" | "Admin") build Admin $PWD/src/Admin ;;
|
||||
"identity" | "Identity") build Identity $PWD/src/Identity ;;
|
||||
"events" | "Events") build Events $PWD/src/Events ;;
|
||||
"api" | "Api") build Api $PWD/src/Api ;;
|
||||
"billing" | "Billing") build Billing $PWD/src/Billing ;;
|
||||
"sso" | "Sso") build Sso $PWD/bitwarden_license/src/Sso ;;
|
||||
"server" | "Server") build Server $PWD/util/Server ;;
|
||||
"icons" | "Icons") build Icons $PWD/src/Icons ;;
|
||||
"notifications" | "Notifications") build Notifications $PWD/src/Notifications ;;
|
||||
"setup" | "Setup") build Setup $PWD/util/Setup ;;
|
||||
"events" | "Events") build Events $PWD/src/Events ;;
|
||||
"eventsprocessor" | "EventsProcessor") build EventsProcessor $PWD/src/EventsProcessor ;;
|
||||
"icons" | "Icons") build Icons $PWD/src/Icons ;;
|
||||
"identity" | "Identity") build Identity $PWD/src/Identity ;;
|
||||
"notifications" | "Notifications") build Notifications $PWD/src/Notifications ;;
|
||||
"server" | "Server") build Server $PWD/util/Server ;;
|
||||
"sso" | "Sso") build Sso $PWD/bitwarden_license/src/Sso ;;
|
||||
"")
|
||||
build Api $PWD/src/Api
|
||||
build Admin $PWD/src/Admin
|
||||
build Identity $PWD/src/Identity
|
||||
build Events $PWD/src/Events
|
||||
build Billing $PWD/src/Billing
|
||||
build Sso $PWD/bitwarden_license/src/Sso
|
||||
build Server $PWD/util/Server
|
||||
build Icons $PWD/src/Icons
|
||||
build Notifications $PWD/src/Notifications
|
||||
build Admin $PWD/src/Admin
|
||||
build Api $PWD/src/Api
|
||||
build Billing $PWD/src/Billing
|
||||
build Events $PWD/src/Events
|
||||
build EventsProcessor $PWD/src/EventsProcessor
|
||||
build Icons $PWD/src/Icons
|
||||
build Identity $PWD/src/Identity
|
||||
build Notifications $PWD/src/Notifications
|
||||
build Server $PWD/util/Server
|
||||
build Sso $PWD/bitwarden_license/src/Sso
|
||||
;;
|
||||
esac
|
||||
|
@ -22,10 +22,6 @@ docker_build() {
|
||||
|
||||
echo "Building docker image: bitwarden/$project_name_lower:$docker_tag"
|
||||
echo "=============================="
|
||||
if [ "$project_name_lower" == "k8s-proxy" ]; then
|
||||
docker build -f $project_dir/Dockerfile-k8s -t bitwarden/$project_name_lower:$docker_tag $project_dir
|
||||
fi
|
||||
|
||||
docker build -t bitwarden/$project_name_lower:$docker_tag $project_dir
|
||||
|
||||
if [ "$docker_push" == "1" ]; then
|
||||
@ -59,35 +55,34 @@ done
|
||||
|
||||
|
||||
case "$PROJECT" in
|
||||
"api" | "Api") docker_build Api $PWD/src/Api $TAG $PUSH ;;
|
||||
"admin" | "Admin") docker_build Admin $PWD/src/Admin $TAG $PUSH ;;
|
||||
"identity" | "Identity") docker_build Identity $PWD/src/Identity $TAG $PUSH ;;
|
||||
"events" | "Events") docker_build Events $PWD/src/Events $TAG $PUSH ;;
|
||||
#"billing" | "Billing") docker_build Billing $PWD/src/Billing $TAG $PUSH ;;
|
||||
"sso" | "Sso") docker_build Sso $PWD/bitwarden_license/src/Sso $TAG $PUSH ;;
|
||||
"server" | "Server") docker_build Server $PWD/util/Server $TAG $PUSH ;;
|
||||
"nginx" | "Nginx") docker_build Nginx $PWD/util/Nginx $TAG $PUSH ;;
|
||||
"k8s-proxy" | "K8s-Proxy") docker_build K8s-Proxy $PWD/util/Nginx $TAG $PUSH ;;
|
||||
"api" | "Api") docker_build Api $PWD/src/Api $TAG $PUSH ;;
|
||||
"attachments" | "Attachments") docker_build Attachments $PWD/util/Attachments $TAG $PUSH ;;
|
||||
"icons" | "Icons") docker_build Icons $PWD/src/Icons $TAG $PUSH ;;
|
||||
"notifications" | "Notifications") docker_build Notifications $PWD/src/Notifications $TAG $PUSH ;;
|
||||
"mssql" | "MsSql" | "Mssql") docker_build MsSql $PWD/util/MsSql $TAG $PUSH ;;
|
||||
"setup" | "Setup") docker_build Setup $PWD/util/Setup $TAG $PUSH ;;
|
||||
#"billing" | "Billing") docker_build Billing $PWD/src/Billing $TAG $PUSH ;;
|
||||
"events" | "Events") docker_build Events $PWD/src/Events $TAG $PUSH ;;
|
||||
"eventsprocessor" | "EventsProcessor") docker_build EventsProcessor $PWD/src/EventsProcessor $TAG $PUSH ;;
|
||||
"icons" | "Icons") docker_build Icons $PWD/src/Icons $TAG $PUSH ;;
|
||||
"identity" | "Identity") docker_build Identity $PWD/src/Identity $TAG $PUSH ;;
|
||||
"mssql" | "MsSql" | "Mssql") docker_build MsSql $PWD/util/MsSql $TAG $PUSH ;;
|
||||
"nginx" | "Nginx") docker_build Nginx $PWD/util/Nginx $TAG $PUSH ;;
|
||||
"notifications" | "Notifications") docker_build Notifications $PWD/src/Notifications $TAG $PUSH ;;
|
||||
"server" | "Server") docker_build Server $PWD/util/Server $TAG $PUSH ;;
|
||||
"setup" | "Setup") docker_build Setup $PWD/util/Setup $TAG $PUSH ;;
|
||||
"sso" | "Sso") docker_build Sso $PWD/bitwarden_license/src/Sso $TAG $PUSH ;;
|
||||
"")
|
||||
docker_build Api $PWD/src/Api $TAG $PUSH
|
||||
docker_build Admin $PWD/src/Admin $TAG $PUSH
|
||||
docker_build Identity $PWD/src/Identity $TAG $PUSH
|
||||
docker_build Events $PWD/src/Events $TAG $PUSH
|
||||
#docker_build Billing $PWD/src/Billing $TAG $PUSH
|
||||
docker_build Sso $PWD/bitwarden_license/src/Sso $TAG $PUSH
|
||||
docker_build Server $PWD/util/Server $TAG $PUSH
|
||||
docker_build Nginx $PWD/util/Nginx $TAG $PUSH
|
||||
docker_build Api $PWD/src/Api $TAG $PUSH
|
||||
docker_build Attachments $PWD/util/Attachments $TAG $PUSH
|
||||
docker_build Icons $PWD/src/Icons $TAG $PUSH
|
||||
docker_build Notifications $PWD/src/Notifications $TAG $PUSH
|
||||
docker_build MsSql $PWD/util/MsSql $TAG $PUSH
|
||||
docker_build Setup $PWD/util/Setup $TAG $PUSH
|
||||
#docker_build Billing $PWD/src/Billing $TAG $PUSH
|
||||
docker_build Events $PWD/src/Events $TAG $PUSH
|
||||
docker_build EventsProcessor $PWD/src/EventsProcessor $TAG $PUSH
|
||||
docker_build Icons $PWD/src/Icons $TAG $PUSH
|
||||
docker_build Identity $PWD/src/Identity $TAG $PUSH
|
||||
docker_build MsSql $PWD/util/MsSql $TAG $PUSH
|
||||
docker_build Nginx $PWD/util/Nginx $TAG $PUSH
|
||||
docker_build Notifications $PWD/src/Notifications $TAG $PUSH
|
||||
docker_build Server $PWD/util/Server $TAG $PUSH
|
||||
docker_build Setup $PWD/util/Setup $TAG $PUSH
|
||||
docker_build Sso $PWD/bitwarden_license/src/Sso $TAG $PUSH
|
||||
;;
|
||||
esac
|
||||
|
Reference in New Issue
Block a user