Skip to content

Commit 0592521

Browse files
committed
build and push esgz image for all platforms
As the project's BuildKite infrastructure is expanding to test against the ARM architecture, the image used for remote snapshotter testing will need to be built for ARM. By pulling the image and optimizing with the --all-platforms flag, we can provide ARM support. Signed-off-by: Gavin Inglis <[email protected]>
1 parent 51e51b0 commit 0592521

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,8 @@ DEFAULT_BASE_IMAGE=public.ecr.aws/amazonlinux/amazonlinux:latest
431431
DEFAULT_ESGZ_IMAGE=ghcr.io/firecracker-microvm/firecracker-containerd/amazonlinux:latest-esgz
432432
.PHONY: esgz-test-image push-esgz-test-image
433433
esgz-test-image: stargz-snapshotter
434-
$(CTR_REMOTE_BIN) image pull $(DEFAULT_BASE_IMAGE)
435-
$(CTR_REMOTE_BIN) image optimize --oci $(DEFAULT_BASE_IMAGE) $(DEFAULT_ESGZ_IMAGE)
434+
$(CTR_REMOTE_BIN) image pull --all-platforms $(DEFAULT_BASE_IMAGE)
435+
$(CTR_REMOTE_BIN) image optimize --all-platforms --oci $(DEFAULT_BASE_IMAGE) $(DEFAULT_ESGZ_IMAGE)
436436

437437
push-esgz-test-image:
438-
$(CTR_REMOTE_BIN) image push -u $(GH_USER):$(GH_PERSONAL_ACCESS_TOKEN) $(DEFAULT_ESGZ_IMAGE) $(DEFAULT_ESGZ_IMAGE)
438+
$(CTR_REMOTE_BIN) image push -u $(GH_USER):$(GH_PERSONAL_ACCESS_TOKEN) $(DEFAULT_ESGZ_IMAGE) $(DEFAULT_ESGZ_IMAGE)

0 commit comments

Comments
 (0)