天波h5前端应用
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

30 linhas
1.4KB

  1. ###
  2. # @Author: your name
  3. # @Date: 2020-07-02 10:34:59
  4. # @LastEditTime: 2022-02-25 15:01:53
  5. # @LastEditors: JinxChen
  6. # @Description: In User Settings Edit
  7. # @FilePath: \AntpayFrontEnd\setup_production.sh
  8. ###
  9. #!/bin/bash
  10. npm -v
  11. npm config set registry https://registry.npm.taobao.org
  12. npm install
  13. npm run build
  14. image_version=$version;
  15. # 删除镜像
  16. docker rmi -f $(docker images | grep registry.cn-shanghai.aliyuncs.com/tolpo_platform/antpay_frontend_web | awk '{print $3}')
  17. # 构建telpo/mrp:$image_version镜像
  18. docker build --no-cache . -t telpo/antpay_frontend_web:$image_version;
  19. #TODO:推送镜像到阿里仓库
  20. echo '=================开始推送镜像======================='
  21. #docker login --username=telpo_linwl@1111649216405698 --password=telpo#1234 registry.cn-shanghai.aliyuncs.com
  22. #docker login --username=telpo_fengjj@1111649216405698 --password=PWDaliyun123 registry.cn-shanghai.aliyuncs.com
  23. docker login --username=rzl_wangjx@1111649216405698 --password=telpo.123 registry.cn-shanghai.aliyuncs.com
  24. docker tag telpo/antpay_frontend_web:$image_version registry.cn-shanghai.aliyuncs.com/tolpo_platform/antpay_frontend_web:$image_version
  25. docker push registry.cn-shanghai.aliyuncs.com/tolpo_platform/antpay_frontend_web:$image_version
  26. echo '=================推送镜像完成======================='
  27. #删除产生的None镜像
  28. docker rmi -f $(docker images | grep none | awk '{print $3}')
  29. # 查看镜像列表
  30. docker images;