|
|
|
@@ -129,15 +129,34 @@ build_and_deploy() { |
|
|
|
deploy_service ${yaml_file} |
|
|
|
} |
|
|
|
|
|
|
|
if [ "$service" == "front" ]; then |
|
|
|
build_and_deploy "nginx-dockerfile" "172.20.32.187/ci4s/ci4s-front:${tag}" "k8s-12front.yaml" |
|
|
|
fi |
|
|
|
|
|
|
|
# 构建和部署 manage 服务 |
|
|
|
if [ "$service" == "manage-front" ] || [ "$service" == "manage" ]; then |
|
|
|
if [ "$service" == "manage" ]; then |
|
|
|
build_and_deploy "managent-dockerfile" "172.20.32.187/ci4s/ci4s-managent:${tag}" "k8s-7management.yaml" |
|
|
|
fi |
|
|
|
|
|
|
|
if [ "$service" == "auth" ]; then |
|
|
|
#部署认证中心 |
|
|
|
build_and_deploy "auth-dockerfile" "172.20.32.187/ci4s/ci4s-auth:${tag}" "k8s-5auth.yaml" |
|
|
|
fi |
|
|
|
|
|
|
|
if [ "$service" == "gateway" ]; then |
|
|
|
#部署网关 |
|
|
|
build_and_deploy "gateway-dockerfile" "172.20.32.187/ci4s/ci4s-gateway:${tag}" "k8s-4gateway.yaml" |
|
|
|
fi |
|
|
|
|
|
|
|
if [ "$service" == "system" ]; then |
|
|
|
#部署系统服务 |
|
|
|
build_and_deploy "system-dockerfile" "172.20.32.187/ci4s/ci4s-system:${tag}" "k8s-6system.yaml" |
|
|
|
fi |
|
|
|
|
|
|
|
# 构建和部署 front 服务 |
|
|
|
if [ "$service" == "manage-front" ] || [ "$service" == "front" ]; then |
|
|
|
if [ "$service" == "manage-front" ]; then |
|
|
|
build_and_deploy "nginx-dockerfile" "172.20.32.187/ci4s/ci4s-front:${tag}" "k8s-12front.yaml" |
|
|
|
build_and_deploy "managent-dockerfile" "172.20.32.187/ci4s/ci4s-managent:${tag}" "k8s-7management.yaml" |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|