附近小店
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

build.sh 583 B

2 miesięcy temu
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_community_team:${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}