天波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 1.0KB

1234567891011121314151617181920212223242526272829
  1. ###
  2. # @Author: your name
  3. # @Date: 2020-07-02 10:34:59
  4. # @LastEditTime: 2022-02-25 15:02:07
  5. # @LastEditors: JinxChen
  6. # @Description: In User Settings Edit
  7. # @FilePath: \AntpayFrontEnd\setup_test.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-test
  14. image_version=$version;
  15. # 删除镜像
  16. docker rmi -f $(
  17. docker images | grep 139.224.254.18:5000/antpay_frontend_web | awk '{print $3}'
  18. )
  19. # 构建telpo/mrp:$image_version镜像
  20. docker build --no-cache . -t telpo/antpay_frontend_web:$image_version;
  21. #TODO:推送镜像到私有仓库
  22. echo '=================开始推送镜像======================='
  23. docker tag telpo/antpay_frontend_web:$image_version 139.224.254.18:5000/antpay_frontend_web:$image_version
  24. docker push 139.224.254.18:5000/antpay_frontend_web:$image_version
  25. echo '=================推送镜像完成======================='
  26. #删除产生的None镜像
  27. docker rmi -f $(docker images | grep none | awk '{print $3}')
  28. # 查看镜像列表
  29. docker images;