广告平台(媒体使用)
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

3 个月前
123456789101112131415161718
  1. echo "update -> repo"
  2. git fetch
  3. git reset --hard origin/master
  4. echo "update repo -> Success"
  5. id="git rev-parse --short HEAD"
  6. export ZYOS_APP_COMMIT_ID=`eval $id`
  7. echo "GET the Commit ID for git -> $ZYOS_APP_COMMIT_ID"
  8. echo "Start build image "
  9. image_name=registry-vpc.cn-shenzhen.aliyuncs.com/fnuoos-prd/zyos-mall:${ZYOS_APP_COMMIT_ID}
  10. #final_image_name=registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/zyos:${ZYOS_APP_COMMIT_ID}
  11. docker build -t ${image_name} .
  12. docker push ${image_name}
  13. echo "Push image -> $image_name Success"
  14. export ZYOS_APP_LATEST_VERSION=${image_name}