From: William Lallemand Date: Thu, 19 Mar 2026 14:55:58 +0000 (+0100) Subject: CI: github: treat vX.Y.Z release tags as stable like haproxy-* branches X-Git-Tag: v3.4-dev7~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fc38ebb07909e66d90734b6e9a68b83a51228e69;p=thirdparty%2Fhaproxy.git CI: github: treat vX.Y.Z release tags as stable like haproxy-* branches Add detection of release tags matching the vX.Y.Z pattern so they use the same stable CI configuration as haproxy-* branches, rather than the development one. It prevents stable tag to trigger the CI with docker images and SSL libraries only used for development. Must be backported in stable releases. --- diff --git a/.github/matrix.py b/.github/matrix.py index 33e9cb039..e4c658244 100755 --- a/.github/matrix.py +++ b/.github/matrix.py @@ -19,9 +19,10 @@ from packaging import version # # this CI is used for both development and stable branches of HAProxy # -# naming convention used, if branch name matches: +# naming convention used, if branch/tag name matches: # # "haproxy-" - stable branches +# "vX.Y.Z" - release tags # otherwise - development branch (i.e. "latest" ssl variants, "latest" github images) # @@ -120,11 +121,13 @@ def clean_compression(compression): def main(ref_name): print("Generating matrix for branch '{}'.".format(ref_name)) + is_stable = "haproxy-" in ref_name or re.match(r'^v\d+\.\d+\.\d+$', ref_name) + matrix = [] # Ubuntu - if "haproxy-" in ref_name: + if is_stable: os = "ubuntu-24.04" # stable branch os_arm = "ubuntu-24.04-arm" # stable branch else: @@ -228,7 +231,7 @@ def main(ref_name): # "BORINGSSL=yes", ] - if "haproxy-" not in ref_name: # development branch + if not is_stable: # development branch ssl_versions = ssl_versions + [ "OPENSSL_VERSION=latest", "LIBRESSL_VERSION=latest", @@ -276,7 +279,7 @@ def main(ref_name): ) # macOS on dev branches - if "haproxy-" not in ref_name: + if not is_stable: os = "macos-26" # development branch TARGET = "osx"