images.sh 357 B

12345678910111213141516171819
  1. #!/bin/bash
  2. set -e
  3. ImageTag=$1
  4. if [ -n "$ImageTag" ]
  5. then
  6. echo "当前镜像tag: $ImageTag"
  7. else
  8. echo "请输入当前镜像tag"
  9. exit
  10. fi
  11. current_path=$(pwd)
  12. echo "当前路径为:$current_path"
  13. ### go build
  14. echo "============ go build start ================"
  15. make img-build ImageTag="${ImageTag}"
  16. echo "============push images end ================"