fix builder image tagging using new remote-tag option of linuxkit

Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
Avi Deitcher
2024-03-06 10:19:01 +02:00
parent 17ed8938e0
commit 3087e9055a
4 changed files with 4 additions and 11 deletions

View File

@@ -36,19 +36,14 @@ endif
REPO_ROOT:=$(shell git rev-parse --show-toplevel)
# Path to push-manifest.sh
PUSH_MANIFEST:=$(REPO_ROOT)/scripts/push-manifest.sh
# determine our architecture
BUILDERARCH=
ifneq ($(ARCH),)
ifeq ($(ARCH),$(filter $(ARCH),x86_64 amd64))
SUFFIX=-amd64
override ARCH=x86_64
BUILDERARCH=amd64
endif
ifeq ($(ARCH),$(filter $(ARCH),aarch64 arm64))
SUFFIX=-arm64
override ARCH=aarch64
BUILDERARCH=arm64
endif
@@ -143,9 +138,7 @@ push-%: notdirty build-% pushkernel-% tagbuilder-% pushtools-%;
# we cannot assume that IMAGE_BUILDER is available locally, whether in docker image cache or limuxkit cache
tagbuilder-%: notdirty
$(eval BUILDER_IMAGE=$(call baseimage,$*)-builder)
docker tag $(IMAGE_BUILDER) $(BUILDER_IMAGE)$(SUFFIX) && \
docker push $(BUILDER_IMAGE)$(SUFFIX) && \
$(PUSH_MANIFEST) $(BUILDER_IMAGE)
linuxkit pkg remote-tag $(IMAGE_BUILDER) $(BUILDER_IMAGE)
pushkernel-%: pushplainkernel-% pushdebugkernel-%;