Skip to content

Commit fd742fe

Browse files
authored
Fix missing branch for tag event (#8261) (#8271)
Adding tag from git command is different from tagging from github web, the branch is refs/tags/* instead of releases/* . Add refs/tags/* to branch so tag from git command can also publish builds. (cherry picked from commit c9c079e)
1 parent 013ce3a commit fd742fe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.drone.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ pipeline:
235235
cache_control: 'public,max-age=3600'
236236
when:
237237
repo: vmware/vic
238-
branch: ['releases/*']
238+
branch: ['releases/*', 'refs/tags/*']
239239
event: tag
240240
status: success
241241

@@ -267,7 +267,7 @@ pipeline:
267267
when:
268268
repo: vmware/vic
269269
event: tag
270-
branch: 'releases/*'
270+
branch: ['releases/*', 'refs/tags/*']
271271
status: success
272272

273273
vic-machine-server-publish:
@@ -280,7 +280,7 @@ pipeline:
280280
when:
281281
repo: vmware/vic
282282
event: [push, tag]
283-
branch: [master, 'releases/*']
283+
branch: [master, 'releases/*', 'refs/tags/*']
284284
status: success
285285

286286
trigger-downstream:
@@ -295,7 +295,7 @@ pipeline:
295295
when:
296296
repo: vmware/vic
297297
event: [push, tag]
298-
branch: [master, 'releases/*']
298+
branch: [master, 'releases/*', 'refs/tags/*']
299299
status: success
300300

301301
notify-slack-on-fail:
@@ -308,7 +308,7 @@ pipeline:
308308
when:
309309
repo: vmware/vic
310310
event: [push, tag]
311-
branch: [master, 'releases/*']
311+
branch: [master, 'releases/*', 'refs/tags/*']
312312
status: failure
313313

314314
notify-slack-on-pass:
@@ -333,7 +333,7 @@ pipeline:
333333
template: "The latest version of VIC engine has been released, find the build here: https://console.cloud.google.com/storage/browser/vic-engine-releases\n"
334334
when:
335335
repo: vmware/vic
336-
branch: ['releases/*']
336+
branch: ['releases/*', 'refs/tags/*']
337337
event: tag
338338
status: success
339339

0 commit comments

Comments
 (0)