蛋蛋星球-客户端
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

build.sh 573 B

6 dagar sedan
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/egg-admin:${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}