docker: Fix aarch64 mysql docker build/push skip
[validation.git] / docker / mysql / Makefile
index db91c1e..c1f627f 100644 (file)
 ##############################################################################
 
 .PHONY: all
-all: .push_image .push_manifest
+all: push-image .push_manifest
 
-.PHONY: build
+# MySQL 5.6 is not supported on arm64 yet, skip building it for now
+.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
+push-image:
+       echo "Skipping push on aarch64 platform!"
+       exit 0
+endif
 
 include ../build.mk