mysql: Skip build/push on aarch64 90/1690/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 1 Oct 2019 13:46:55 +0000 (15:46 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 1 Oct 2019 13:46:55 +0000 (15:46 +0200)
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>
docker/build.mk
docker/mysql/Makefile

index 2f7d398..4536563 100644 (file)
@@ -54,7 +54,7 @@ $(MTOOL):
                .
 
 .PHONY: .push_image
-.push_image: .build
+.push_image:: .build
        docker push $(REGISTRY)/$(NAME):$(TAG_PRE)-$(HOST_ARCH)-$(TAG_VER)
 
 .PHONY: .push_manifest
index db91c1e..e45aa7d 100644 (file)
 .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