- #!/bin/bash
-
-
-
-
-
-
-
- npm -v
- npm config set registry https://registry.npm.taobao.org
- npm install
- npm run build
- image_version=$version;
-
- docker rmi -f $(docker images | grep registry.cn-shanghai.aliyuncs.com/tolpo_platform/h5_frontend_web | awk '{print $3}')
-
- docker build --no-cache . -t telpo/h5_frontend_web:$image_version;
-
- echo '=================开始推送镜像======================='
-
-
- docker login --username=rzl_wangjx@1111649216405698 --password=telpo.123 registry.cn-shanghai.aliyuncs.com
- docker tag telpo/h5_frontend_web:$image_version registry.cn-shanghai.aliyuncs.com/tolpo_platform/h5_frontend_web:$image_version
- docker push registry.cn-shanghai.aliyuncs.com/tolpo_platform/h5_frontend_web:$image_version
- echo '=================推送镜像完成======================='
-
- docker rmi -f $(docker images | grep none | awk '{print $3}')
-
- docker images;
|