From 7319d6f58d3e9bc32f383ff08067fc2b1f151844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Felix=20=C5=A0ulc?= Date: Tue, 17 Sep 2024 13:52:42 +0200 Subject: [PATCH] Makefile: use buildx --- Makefile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index f6b64f3..5c70916 100644 --- a/Makefile +++ b/Makefile @@ -2,32 +2,33 @@ ADMINER_VERSION=4.8.1 DOCKER_IMAGE=dockette/adminer +DOCKER_PLATFORMS=linux/amd64 build-all: build-full build-dg build-editor build-mongo build-mysql build-postgres build-oracle-11 build-oracle-12 build-full: - docker build -t ${DOCKER_IMAGE}:full ./adminer-full + docker buildx build --platform ${DOCKER_PLATFORMS} -t ${DOCKER_IMAGE}:full ./adminer-full build-dg: - docker build -t ${DOCKER_IMAGE}:dg ./adminer-dg + docker buildx build --platform ${DOCKER_PLATFORMS} -t ${DOCKER_IMAGE}:dg ./adminer-dg build-editor: - docker build -t ${DOCKER_IMAGE}:editor ./adminer-editor + docker buildx build --platform ${DOCKER_PLATFORMS} -t ${DOCKER_IMAGE}:editor ./adminer-editor build-mongo: - docker build -t ${DOCKER_IMAGE}:mongo ./adminer-mongo + docker buildx build --platform ${DOCKER_PLATFORMS} -t ${DOCKER_IMAGE}:mongo ./adminer-mongo build-mysql: - docker build -t ${DOCKER_IMAGE}:mysql ./adminer-mysql + docker buildx build --platform ${DOCKER_PLATFORMS} -t ${DOCKER_IMAGE}:mysql ./adminer-mysql build-oracle-11: - docker build -t ${DOCKER_IMAGE}:oracle-11 ./adminer-oracle-11 + docker buildx build --platform ${DOCKER_PLATFORMS} -t ${DOCKER_IMAGE}:oracle-11 ./adminer-oracle-11 build-oracle-12: - docker build -t ${DOCKER_IMAGE}:oracle-12 ./adminer-oracle-12 + docker buildx build --platform ${DOCKER_PLATFORMS} -t ${DOCKER_IMAGE}:oracle-12 ./adminer-oracle-12 build-postgres: - docker build -t ${DOCKER_IMAGE}:postgres ./adminer-postgres + docker buildx build --platform ${DOCKER_PLATFORMS} -t ${DOCKER_IMAGE}:postgres ./adminer-postgres update-versions: find . -type f -name Dockerfile -exec sed -i '' 's/ENV ADMINER_VERSION=.*/ENV ADMINER_VERSION=${ADMINER_VERSION}/g' {} +