天波用户运营管理后台系统
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.

32 satır
1.0KB

  1. ###
  2. # @Author: JinxuChen
  3. # @Date: 2021-11-15
  4. # @LastEditTime: 2022-08-12 14:21:45
  5. # @LastEditors: JinxChen
  6. # @Description: In User Settings Edit
  7. # @FilePath: \TelpoUserManageAdmin\setup_test.sh
  8. ###
  9. #!/usr/bin/env bash
  10. npm -v
  11. npm config set registry https://registry.npmmirror.com/
  12. npm config list
  13. npm install
  14. npm run build-test
  15. image_version=$version
  16. # 删除镜像
  17. docker rmi -f $(
  18. docker images | grep 139.224.254.18:5000/telpo_user_admin | awk '{print $3}'
  19. )
  20. # 构建telpo_user_admin:$image_version镜像
  21. docker build . -t telpo/telpo_user_admin:$image_version;
  22. #TODO:推送镜像到私有仓库
  23. echo '=================开始推送镜像======================='
  24. docker tag telpo/telpo_user_admin:$image_version 139.224.254.18:5000/telpo_user_admin:$image_version
  25. docker push 139.224.254.18:5000/telpo_user_admin:$image_version
  26. echo '=================推送镜像完成======================='
  27. #删除产生的None镜像
  28. docker rmi -f $(docker images | grep none | awk '{print $3}')
  29. # 查看镜像列表
  30. docker images