广告平台(媒体使用)
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.sh 584 B

3 달 전
2 달 전
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/advertisement-medium:${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}