天波h5前端应用
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.

setup_test.sh 967B

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