Skip to content

Commit 1c7fba1

Browse files
authored
buildkite: support for npcap or urgency releases (#556)
1 parent 978a0a6 commit 1c7fba1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.buildkite/pipeline.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ steps:
7575
- ".buildkite/scripts/publish.sh {{matrix.makefile}}"
7676
env:
7777
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$$/
7980
agents:
8081
provider: "gcp"
8182
image: "${IMAGE_UBUNTU_X86_64}"
@@ -102,7 +103,8 @@ steps:
102103
- ".buildkite/scripts/publish.sh Makefile.debian9"
103104
env:
104105
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$$/
106108
agents:
107109
provider: "aws"
108110
imagePrefix: "${IMAGE_UBUNTU_ARM_64}"
@@ -119,6 +121,7 @@ steps:
119121
- label: "Post-Release"
120122
key: "release-post"
121123
command: ".buildkite/scripts/post-release.sh ${GOLANG_VERSION}"
124+
# Releases should only be for main for ^[0-9].[0-9]$ branches.
122125
if: build.branch == "main" || build.branch =~ /^[0-9]+\.[0-9]+$$/
123126
depends_on:
124127
- "release-ubuntu-x86"

0 commit comments

Comments
 (0)