The previous attempt of skipping the mysql container image build on
aarch64 did not really work.
Rework our .push_image by adding a wrapper make target, push-image,
for each docker container.
Fixes:
ffc875998692929c2e4c0881aec6b68c9f2fbab8
Change-Id: I1fe2d0ad05fda224db1991d07f46653f89b5a82b
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
.PHONY: $(SUBDIRS_PUSH)
$(SUBDIRS_PUSH):
- $(MAKE) -C $(@:-push=) .push_image
+ $(MAKE) -C $(@:-push=) push-image
include build.mk
.
.PHONY: .push_image
-.push_image:: .build
+.push_image: .build
docker push $(REGISTRY)/$(NAME):$(TAG_PRE)-$(HOST_ARCH)-$(TAG_VER)
.PHONY: .push_manifest
##############################################################################
.PHONY: all
-all: .push_image .push_manifest
+all: push-image .push_manifest
.PHONY: build
build: .build
+.PHONY: push-image
+push-image: .push_image
+
include ../build.mk
##############################################################################
.PHONY: all
-all: .push_image .push_manifest
+all: push-image .push_manifest
.PHONY: build
build: .build
+.PHONY: push-image
+push-image: .push_image
+
include ../build.mk
##############################################################################
.PHONY: all
-all: .push_image .push_manifest
+all: push-image .push_manifest
.PHONY: build
build: .build
+.PHONY: push-image
+push-image: .push_image
+
include ../build.mk
##############################################################################
.PHONY: all
-all: .push_image .push_manifest
+all: push-image .push_manifest
.PHONY: build
build: .build
+.PHONY: push-image
+push-image: .push_image
+
include ../build.mk
$(MAKE) -C $(TAG_PRE) e2e.test kubectl ginkgo
.PHONY: all
-all: .push_image .push_manifest
+all: push-image .push_manifest
.PHONY: build
build: .build
+.PHONY: push-image
+push-image: .push_image
+
include ../build.mk
##############################################################################
.PHONY: all
-all: .push_image .push_manifest
+all: push-image .push_manifest
# MySQL 5.6 is not supported on arm64 yet, skip building it for now
-ifeq ($(shell uname -m), aarch64)
-.PHONY: .build
-.build::
+.PHONY: build push-image
+ifneq ($(shell uname -m), aarch64)
+build: .build
+push-image: .push_image
+else
+build:
echo "Skipping build on aarch64 platform!"
exit 0
-.PHONY: .push_image
-.push_image::
+push-image:
echo "Skipping push on aarch64 platform!"
exit 0
endif
-.PHONY: build
-build: .build
-
include ../build.mk
##############################################################################
.PHONY: all
-all: .push_image .push_manifest
+all: push-image .push_manifest
.PHONY: build
build: .build
+.PHONY: push-image
+push-image: .push_image
+
include ../build.mk
##############################################################################
.PHONY: all
-all: .push_image .push_manifest
+all: push-image .push_manifest
.PHONY: build
build: .build
+.PHONY: push-image
+push-image: .push_image
+
include ../build.mk
.build:: .submodules_patched
.PHONY: all
-all: .push_image .push_manifest
+all: push-image .push_manifest
.PHONY: build
build: .build
+.PHONY: push-image
+push-image: .push_image
+
include ../build.mk
##############################################################################
.PHONY: all
-all: .push_image .push_manifest
+all: push-image .push_manifest
.PHONY: build
build: .build
+.PHONY: push-image
+push-image: .push_image
+
include ../build.mk