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.
|
- echo "update -> repo"
- git fetch
- git reset --hard origin/master
- echo "update repo -> Success"
-
- id="git rev-parse --short HEAD"
- export ZYOS_APP_COMMIT_ID=`eval $id`
- echo "GET the Commit ID for git -> $ZYOS_APP_COMMIT_ID"
-
- echo "Start build image "
-
- image_name=registry-vpc.cn-shenzhen.aliyuncs.com/fnuoos-prd/egg-go-mq-consume:${ZYOS_APP_COMMIT_ID}
- #final_image_name=registry.cn-shenzhen.aliyuncs.com/fnuoos-prd/zyos:${ZYOS_APP_COMMIT_ID}
- docker build -t ${image_name} .
-
- docker push ${image_name}
- echo "Push image -> $image_name Success"
- export ZYOS_APP_LATEST_VERSION=${image_name}
|