mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
CI: use semantic version compare for determing "latest" OpenSSL
currently "openssl-3.2.0-beta1" wins over "openssl-3.2.0" due to string comparision. let's switch to semantic version compare
This commit is contained in:
parent
8705e45964
commit
e6d0b87f7f
3
.github/matrix.py
vendored
3
.github/matrix.py
vendored
@ -14,6 +14,7 @@ import re
|
|||||||
import sys
|
import sys
|
||||||
import urllib.request
|
import urllib.request
|
||||||
from os import environ
|
from os import environ
|
||||||
|
from packaging import version
|
||||||
|
|
||||||
#
|
#
|
||||||
# this CI is used for both development and stable branches of HAProxy
|
# this CI is used for both development and stable branches of HAProxy
|
||||||
@ -47,7 +48,7 @@ def determine_latest_openssl(ssl):
|
|||||||
latest_tag = ""
|
latest_tag = ""
|
||||||
for tag in tags:
|
for tag in tags:
|
||||||
if "openssl-" in tag:
|
if "openssl-" in tag:
|
||||||
if tag > latest_tag:
|
if (not latest_tag) or (version.parse(tag[8:]) > version.parse(latest_tag[8:])):
|
||||||
latest_tag = tag
|
latest_tag = tag
|
||||||
return "OPENSSL_VERSION={}".format(latest_tag[8:])
|
return "OPENSSL_VERSION={}".format(latest_tag[8:])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user