mirror of
https://github.com/goharbor/harbor
synced 2024-09-20 12:15:31 +00:00
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:
parent
6f118031b1
commit
6ec5ea043f
|
@ -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 ----------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user