Skip to content

Commit

Permalink
test: fix cross-arch
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsleyzissou committed May 8, 2024
1 parent bdd24b3 commit 38fa1e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,13 @@ def image_type_fixture(shared_tmpdir, build_container, request, force_aws_upload

# copy the container into containers-storage
# for all builds
arch = "amd64"
if target_arch == "aarch64" or target_arch == "arm64":
arch = "arm64"

subprocess.check_call([
"skopeo", "copy",
"--override-arch", arch,
f"docker://{container_ref}",
f"containers-storage:[overlay@/var/lib/containers/storage+/run/containers/storage]{container_ref}"
])
Expand Down

0 comments on commit 38fa1e5

Please sign in to comment.