MySQL 5.6 is not officially available on aarch64 platforms, so
skip building/pushing the arm64 artifacts for our mysql container.
Change-Id: I21c6ae3cf33d46966e432c53f57cffc80d4d4170
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
.
.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
+# MySQL 5.6 is not supported on arm64 yet, skip building it for now
+ifeq ($(shell uname -m), aarch64)
+.PHONY: .build
+.build::
+ echo "Skipping build on aarch64 platform!"
+ exit 0
+.PHONY: .push_image
+.push_image::
+ echo "Skipping push on aarch64 platform!"
+ exit 0
+endif
+
.PHONY: build
build: .build