Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit 05f52e0

Browse files
author
Thulio Ferraz Assis
authored
fix: release regex tag matching (#86)
* fix: release regex tag matching Travis will only be triggered if it matches the allowed branches. Signed-off-by: Thulio Ferraz Assis <[email protected]> * fix: use 'if' condition instead of 'branches' Signed-off-by: Thulio Ferraz Assis <[email protected]>
1 parent 0b3db15 commit 05f52e0

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.travis.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
language: go
2-
32
go: 1.14.x
43

54
os: linux
@@ -62,6 +61,26 @@ stages:
6261
- test-integration
6362
- name: release
6463
if: >-
64+
(repo = "kubernetes-sigs/minibroker") AND
6565
(tag IS present) AND
66-
(branch = master) AND
67-
(repo = "kubernetes-sigs/minibroker")
66+
(branch ~= /^(?x)
67+
v(0|[1-9][0-9]*) # major
68+
\.
69+
(0|[1-9][0-9]*) # minor
70+
\.
71+
(0|[1-9][0-9]*) # patch
72+
(?:
73+
- # pre-release
74+
(
75+
(?:0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)
76+
(?:\.
77+
(?:0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)
78+
)*
79+
)
80+
)?
81+
# build
82+
(?:\+([0-9a-zA-Z-]+
83+
(?:\.[0-9a-zA-Z-]+)*
84+
)
85+
)?
86+
$/)

0 commit comments

Comments
 (0)