fix(build): update platform variable and add support for odoo 18.0

This commit is contained in:
Janik von Rotz committed 2025-08-04 20:35:10 +02:00
1 parent f02e304562
commit 5bb471efc7
1 file changed
+5 -1
+5 -1
View File
@@ -633,7 +633,7 @@ function build() {
fi
if [ -n "$2" ]; then
PLATFORM="$1"
PLATFORM="$2"
fi
ODOO_DATE=$(echo "$ODOO_REVISION" | cut -d'.' -f3-)
@@ -650,11 +650,15 @@ function build() {
"17.0")
PYTHON_VERSION="3.11"
;;
"18.0")
PYTHON_VERSION="3.12"
;;
*)
PYTHON_VERSION="3.12"
;;
esac
echo "Python version is: $PYTHON_VERSION"
echo "Platform is: $PLATFORM"
if [ "$CONTAINER_ENGINE" == "podman" ]; then
echo "Remove container image with tag ${CONTAINER_REGISTRY}${CONTAINER_TAG}"