diff --git a/dev/ci/push_all.sh b/dev/ci/push_all.sh index 03c7198481a03..79022130db5a9 100755 --- a/dev/ci/push_all.sh +++ b/dev/ci/push_all.sh @@ -119,7 +119,7 @@ elif [[ "$BUILDKITE_BRANCH" =~ ^[0-9]+\.[0-9]+$ ]]; then # format introduced by https://github.com/sourcegraph/sourcegraph/pull/48050 # by release branch deployments. push_prod=true -elif [[ "$BUILDKITE_BRANCH" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then +elif [[ "$BUILDKITE_BRANCH" =~ ^[0-9]+\.[0-9]+\.(x|[0-9]+)$ ]]; then # Patch release builds only need to be pushed to internal registries. push_prod=false dev_tags+=("$BUILDKITE_BRANCH-insiders") diff --git a/dev/ci/runtype/runtype.go b/dev/ci/runtype/runtype.go index e753da9dcf5b6..6aac7d8f118db 100644 --- a/dev/ci/runtype/runtype.go +++ b/dev/ci/runtype/runtype.go @@ -141,7 +141,7 @@ func (t RunType) Matcher() *RunTypeMatcher { } case PatchReleaseBranch: return &RunTypeMatcher{ - Branch: `^[0-9]+\.[0-9]+\.[0-9]+$`, + Branch: `^[0-9]+\.[0-9]+\.(?:x|[0-9]+)$`, BranchRegexp: true, } case BextReleaseBranch: