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+ {
13+ python_version = " 3.14.0"
14+ python_version_sufix = " rc1"
15+ python_release = " 3.14"
16+ },
17+ {
18+ python_version = " 3.13.5"
19+ python_version_sufix = " "
20+ python_release = " 3.13"
21+ },
22+ {
23+ python_version = " 3.12.4"
24+ python_version_sufix = " "
25+ python_release = " 3.12"
26+ },
27+ {
28+ python_version = " 3.11.3"
29+ python_version_sufix = " "
30+ python_release = " 3.11"
31+ },
32+ {
33+ python_version = " 3.10.11"
34+ python_version_sufix = " "
35+ python_release = " 3.10"
36+ },
37+ {
38+ python_version = " 3.9.18"
39+ python_version_sufix = " "
40+ python_release = " 3.9"
41+ }
42+ ]
43+ }
44+
945target "aarch64-unknown-linux-gnu" {
1046 context = " ."
1147 dockerfile = " aarch64-unknown-linux-gnu.Dockerfile"
@@ -24,29 +60,13 @@ target "aarch64-unknown-linux-gnu-python" {
2460 dockerfile = " aarch64-unknown-linux-gnu-python.Dockerfile"
2561 name = " aarch64-unknown-linux-gnu-python-${ replace (item. python_release , " ." , " -" )} "
2662 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- ]
63+ item = PYTHON_VERSIONS
4564 }
4665 args = {
4766 CROSS_VERSION = CROSS_VERSION
4867 PYTHON_VERSION = item.python_version
49- PYTHON_RELEASE = item.python_release
68+ PYTHON_RELEASE = item.python_release,
69+ PYTHON_VERSION_SUFFIX = item.python_version_sufix
5070 }
5171 tags = [" cubejs/rust-cross:aarch64-unknown-linux-gnu-${ CROSS_VERSION } -python-${ item . python_release } " ]
5272 platforms = [" linux/amd64" ]
@@ -80,29 +100,13 @@ target "x86_64-unknown-linux-gnu-python" {
80100 dockerfile = " x86_64-unknown-linux-gnu-python.Dockerfile"
81101 name = " x86_64-unknown-linux-gnu-python-${ replace (item. python_release , " ." , " -" )} "
82102 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- ]
103+ item = PYTHON_VERSIONS
101104 }
102105 args = {
103106 CROSS_VERSION = CROSS_VERSION
104107 PYTHON_VERSION = item.python_version
105108 PYTHON_RELEASE = item.python_release
109+ PYTHON_VERSION_SUFFIX = item.python_version_sufix
106110 }
107111 tags = [" cubejs/rust-cross:x86_64-unknown-linux-gnu-${ CROSS_VERSION } -python-${ item . python_release } " ]
108112 platforms = [" linux/amd64" ]
0 commit comments