Skip to content

Commit ba09434

Browse files
fix: Add run_command function to build.py and update imports
Co-Authored-By: Aaron <AJ> Steers <aj@airbyte.io>
1 parent 789f109 commit ba09434

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

airbyte_cdk/cli/build/_run.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import sys
1212
from 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

1717
def 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
)

0 commit comments

Comments
 (0)