File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 75
75
- " .buildkite/scripts/publish.sh {{matrix.makefile}}"
76
76
env :
77
77
FIPS : " {{matrix.fips}}"
78
- if : build.branch == "main" || build.branch =~ /^[0-9]+\.[0-9]+$$/
78
+ # Releases should only be for main for ^[0-9].[0-9] branches (therefore support for major.minor.patch.x too).
79
+ if : build.branch == "main" || build.branch =~ /^[0-9]+\.[0-9]+/ || build.branch =~ /^[0-9]+\.[0-9]+\.[0-9]+\.x$$/
79
80
agents :
80
81
provider : " gcp"
81
82
image : " ${IMAGE_UBUNTU_X86_64}"
@@ -102,7 +103,8 @@ steps:
102
103
- " .buildkite/scripts/publish.sh Makefile.debian9"
103
104
env :
104
105
FIPS : " {{matrix.fips}}"
105
- if : build.branch == "main" || build.branch =~ /^[0-9]+\.[0-9]+$$/
106
+ # Releases should only be for main for ^[0-9].[0-9] branches (therefore support for major.minor.patch.x too).
107
+ if : build.branch == "main" || build.branch =~ /^[0-9]+\.[0-9]+$$/ || build.branch =~ /^[0-9]+\.[0-9]+\.[0-9]+\.x$$/
106
108
agents :
107
109
provider : " aws"
108
110
imagePrefix : " ${IMAGE_UBUNTU_ARM_64}"
@@ -119,6 +121,7 @@ steps:
119
121
- label : " Post-Release"
120
122
key : " release-post"
121
123
command : " .buildkite/scripts/post-release.sh ${GOLANG_VERSION}"
124
+ # Releases should only be for main for ^[0-9].[0-9]$ branches.
122
125
if : build.branch == "main" || build.branch =~ /^[0-9]+\.[0-9]+$$/
123
126
depends_on :
124
127
- " release-ubuntu-x86"
You can’t perform that action at this time.
0 commit comments