数据采集
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.
 
 
 
 
 
 

18 lines
571 B

  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/zhimeng:${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}