Skip to content

Commit c3efd44

Browse files
revert helper.py
1 parent 1990175 commit c3efd44

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

infra/helper.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -667,18 +667,16 @@ def build_image_impl(project, cache=True, pull=False, architecture='x86_64'):
667667
'plain',
668668
'--load',
669669
]
670-
if architecture == 'x86_64':
671-
build_args += ['--platform', 'linux/amd64']
672670
if not cache:
673671
build_args.append('--no-cache')
674672

675673
build_args += ['-t', image_name, '--file', dockerfile_path]
676674
build_args.append(docker_build_dir)
677675

678-
#if architecture == 'aarch64':
679-
#command = ['docker'] + build_args
680-
#subprocess.check_call(command)
681-
#return True
676+
if architecture == 'aarch64':
677+
command = ['docker'] + build_args
678+
subprocess.check_call(command)
679+
return True
682680
return docker_build(build_args)
683681

684682

0 commit comments

Comments
 (0)