Merge pull request #4111 from wy65701436/fix-tag-build

[Upload Build]Fix bug for trigger harbor build with tag
This commit is contained in:
Daniel Jiang 2018-01-23 20:57:57 +08:00 committed by GitHub
commit e48d1b4db2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,8 +98,8 @@ echo "--------------------------------------------------"
#
# Put code here is because that it needs clean code to build installer.
##
if [ $DRONE_BRANCH == "master" ] || [ $DRONE_BRANCH == *"refs/tags"* ] || [ $DRONE_BRANCH == "release-"* ] || [ $DRONE_BRANCH == "pks-"* ]; then
if [ $DRONE_BUILD_EVENT == "push" ] || [ $DRONE_BUILD_EVENT == "tag" ]; then
if [[ $DRONE_BRANCH == "master" || $DRONE_BRANCH == *"refs/tags"* || $DRONE_BRANCH == "release-"* || $DRONE_BRANCH == "pks-"* ]]; then
if [[ $DRONE_BUILD_EVENT == "push" || $DRONE_BUILD_EVENT == "tag" ]]; then
package_offline_installer
upload_latest_build=true
fi