11variable "CROSS_VERSION" {
2- default = " 01082024"
2+ // dmY
3+ default = " 31072025"
34}
45
56variable "LLVM_VERSION" {
67 default = " 18"
78}
89
10+ variable "PYTHON_VERSIONS" {
11+ default = [
12+ # TODO: Enable after release.
13+ # {
14+ # python_version = "3.14.0"
15+ # python_version_sufix = "rc1"
16+ # python_release = "3.14"
17+ # },
18+ {
19+ python_version = " 3.13.5"
20+ python_version_sufix = " "
21+ python_release = " 3.13"
22+ },
23+ {
24+ python_version = " 3.12.4"
25+ python_version_sufix = " "
26+ python_release = " 3.12"
27+ },
28+ {
29+ python_version = " 3.11.3"
30+ python_version_sufix = " "
31+ python_release = " 3.11"
32+ },
33+ {
34+ python_version = " 3.10.11"
35+ python_version_sufix = " "
36+ python_release = " 3.10"
37+ },
38+ {
39+ python_version = " 3.9.18"
40+ python_version_sufix = " "
41+ python_release = " 3.9"
42+ }
43+ ]
44+ }
45+
946target "aarch64-unknown-linux-gnu" {
1047 context = " ."
1148 dockerfile = " aarch64-unknown-linux-gnu.Dockerfile"
@@ -24,29 +61,13 @@ target "aarch64-unknown-linux-gnu-python" {
2461 dockerfile = " aarch64-unknown-linux-gnu-python.Dockerfile"
2562 name = " aarch64-unknown-linux-gnu-python-${ replace (item. python_release , " ." , " -" )} "
2663 matrix = {
27- item = [
28- {
29- python_version = " 3.12.4"
30- python_release = " 3.12"
31- },
32- {
33- python_version = " 3.11.3"
34- python_release = " 3.11"
35- },
36- {
37- python_version = " 3.10.11"
38- python_release = " 3.10"
39- },
40- {
41- python_version = " 3.9.18"
42- python_release = " 3.9"
43- }
44- ]
64+ item = PYTHON_VERSIONS
4565 }
4666 args = {
4767 CROSS_VERSION = CROSS_VERSION
4868 PYTHON_VERSION = item.python_version
49- PYTHON_RELEASE = item.python_release
69+ PYTHON_RELEASE = item.python_release,
70+ PYTHON_VERSION_SUFFIX = item.python_version_sufix
5071 }
5172 tags = [" cubejs/rust-cross:aarch64-unknown-linux-gnu-${ CROSS_VERSION } -python-${ item . python_release } " ]
5273 platforms = [" linux/amd64" ]
@@ -80,29 +101,13 @@ target "x86_64-unknown-linux-gnu-python" {
80101 dockerfile = " x86_64-unknown-linux-gnu-python.Dockerfile"
81102 name = " x86_64-unknown-linux-gnu-python-${ replace (item. python_release , " ." , " -" )} "
82103 matrix = {
83- item = [
84- {
85- python_version = " 3.12.4"
86- python_release = " 3.12"
87- },
88- {
89- python_version = " 3.11.3"
90- python_release = " 3.11"
91- },
92- {
93- python_version = " 3.10.11"
94- python_release = " 3.10"
95- },
96- {
97- python_version = " 3.9.18"
98- python_release = " 3.9"
99- }
100- ]
104+ item = PYTHON_VERSIONS
101105 }
102106 args = {
103107 CROSS_VERSION = CROSS_VERSION
104108 PYTHON_VERSION = item.python_version
105109 PYTHON_RELEASE = item.python_release
110+ PYTHON_VERSION_SUFFIX = item.python_version_sufix
106111 }
107112 tags = [" cubejs/rust-cross:x86_64-unknown-linux-gnu-${ CROSS_VERSION } -python-${ item . python_release } " ]
108113 platforms = [" linux/amd64" ]
0 commit comments