天波用户运营管理后台系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 line
1.2KB

  1. ###
  2. # @Author: JinxuChen
  3. # @Date: 2021-11-15
  4. # @LastEditTime: 2021-12-02 15:17:27
  5. # @LastEditors: JinxuChen
  6. # @Description: In User Settings Edit
  7. # @FilePath: \GpsCardAdmin\setup_production.sh
  8. ###
  9. #!/bin/bash
  10. npm -v
  11. npm install
  12. npm run build
  13. image_version=$version;
  14. # 删除镜像
  15. docker rmi -f $(docker images | grep registry.cn-shanghai.aliyuncs.com/gps_card/gps_card_admin_web | awk '{print $3}')
  16. docker build . -t telpo/gps_card_admin_web:$image_version;
  17. #TODO:推送镜像到阿里仓库
  18. echo '=================开始推送镜像======================='
  19. #docker login --username=telpo_linwl@1111649216405698 --password=telpo#1234 registry.cn-shanghai.aliyuncs.com;
  20. docker login --username=rzl_wangjx@1111649216405698 --password=telpo.123 registry.cn-shanghai.aliyuncs.com
  21. docker tag telpo/gps_card_admin_web:$image_version registry.cn-shanghai.aliyuncs.com/gps_card/gps_card_admin_web:$image_version
  22. docker push registry.cn-shanghai.aliyuncs.com/gps_card/gps_card_admin_web:$image_version
  23. echo '=================推送镜像完成======================='
  24. #删除产生的None镜像
  25. docker rmi -f $(docker images | grep none | awk '{print $3}')
  26. # 查看镜像列表
  27. docker images;