工程批量镜像脚本
本脚本仅支持mac、linux下执行,分支管理参考
# 指定分支,确定需要的项目分支
from_version=develop
# 指定镜像版本号
image_version=latest-$(date +%Y%m%d%H%M%S)
echo $image_version
function image() {
for service in ${services[@]}
do
echo $service
# /home/pai/pai-cli/pai: pai工具位置
# xxx -u:开发者账号 -p:开发者密码
/home/pai/pai-cli/pai login -uxxx -pxxx
/home/pai/pai-cli/pai image publish -n $service -b $from_version -t $image_version
done
}
# 后端工程
services=(
# 企业档案
pai-enterprise
# 招商
pai-business
# pai-business-plan pai-performance-agreement
# 物业
pai-park-space pai-contract pai-finance pai-park-property pai-voucher
# 物联
pai-parking pai-walking pai-security
# 公用
pai-fe-config
# 园区门户
pai-park-portal
# 服务中心
pai-service-center
# 工单中心
pai-work-engine
# 电子合同
# pai-electronic-contract-cloud
pai-electronic-contract
# 门户(首页、招商、物业等)
pai-portal
)
# 打镜像
image
# 前端工程
services=(
# 企业档案
pai-enterprise-ui
# 招商
pai-business-ui
# 物业
pai-park-space-ui pai-park-property-ui pai-contract-ui pai-finance-ui pai-voucher-ui
# 物联
pai-parking-car-ui pai-walking-ui pai-security-ui pai-security-patrol-ui pai-walking-app pai-parking-month-uniapp pai-parking-temporary-uniapp
# 服务中心
pai-service-center-ui pai-work-place-ui pai-property-service-ui
# 企业工作台
pai-enterprise-workbench-ui
# 工单中心
pai-work-order-ui
# 电子合同
# pai-electronic-contract-cloud-ui
pai-electronic-contract-ui
# 门户(首页、招商、物业等)
pai-portal-ui
)
# 打前端镜像
image
文档更新时间: 2023-06-09 10:54 作者:陆鸿睿