Update CI script run in Drone (#6053) (#6191)

Publish images to docker hub with dev tag only for master branch changes

Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
Wenkai Yin 2018-11-01 18:33:40 +08:00 committed by Yan
parent 6f118031b1
commit 6ec5ea043f

View File

@ -197,9 +197,12 @@ set -e
if [ $upload_build == true ] && [ $rc -eq 0 ]; then
cp $harbor_build_bundle harbor-offline-installer-latest.tgz
uploader $harbor_build_bundle $harbor_target_bucket
uploader harbor-offline-installer-latest.tgz $harbor_target_bucket
upload_bundle_success=true
publishImage
uploader harbor-offline-installer-latest.tgz $harbor_target_bucket
upload_bundle_success=true
fi
if [ $DRONE_BRANCH = "master" ] && [ $DRONE_BUILD_EVENT = "push" ]; then
publishImage
fi
## --------------------------------------------- Upload Harbor Latest Build File ----------------------------------