kernel builder handle push properly

Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
Avi Deitcher 2024-03-06 10:00:00 +02:00
parent 67afa5d380
commit 17ed8938e0

View File

@ -137,6 +137,10 @@ builddebugkernel-%: buildkerneldeps-%
push-%: notdirty build-% pushkernel-% tagbuilder-% pushtools-%; push-%: notdirty build-% pushkernel-% tagbuilder-% pushtools-%;
# tagbuilder-% tags the builder image with the kernel version and `-builder` and pushes it
# checks if it already matches on the registry before pushing
# because the build may have been on a remote builder, or we may not have had to do a local build,
# we cannot assume that IMAGE_BUILDER is available locally, whether in docker image cache or limuxkit cache
tagbuilder-%: notdirty tagbuilder-%: notdirty
$(eval BUILDER_IMAGE=$(call baseimage,$*)-builder) $(eval BUILDER_IMAGE=$(call baseimage,$*)-builder)
docker tag $(IMAGE_BUILDER) $(BUILDER_IMAGE)$(SUFFIX) && \ docker tag $(IMAGE_BUILDER) $(BUILDER_IMAGE)$(SUFFIX) && \