File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1111import sys
1212from pathlib import Path
1313
14- from airbyte_cdk .utils .docker .build import run_command as docker_run_command
14+ from airbyte_cdk .utils .docker .build import run_command
1515
1616
1717def run () -> None :
@@ -21,6 +21,13 @@ def run() -> None:
2121 parser .add_argument (
2222 "--tag" , type = str , default = "dev" , help = "Tag to apply to the built image (default: dev)"
2323 )
24+ parser .add_argument (
25+ "--platform" ,
26+ type = str ,
27+ choices = ["linux/amd64" , "linux/arm64" ],
28+ default = "linux/amd64" ,
29+ help = "Platform to build for (default: linux/amd64)" ,
30+ )
2431 parser .add_argument (
2532 "--no-verify" , action = "store_true" , help = "Skip verification of the built image"
2633 )
@@ -29,9 +36,10 @@ def run() -> None:
2936 args = parser .parse_args (sys .argv [1 :])
3037
3138 sys .exit (
32- docker_run_command (
39+ run_command (
3340 connector_dir = Path (args .connector_dir ),
3441 tag = args .tag ,
42+ platform = args .platform ,
3543 no_verify = args .no_verify ,
3644 verbose = args .verbose ,
3745 )
You can’t perform that action at this time.
0 commit comments