From b6a9e62a07d71dc28872760f6eebd4fc82b1688e Mon Sep 17 00:00:00 2001 From: "Damian.Ujma@hyland.com" Date: Thu, 2 Mar 2023 14:27:53 +0100 Subject: [PATCH] ACS-4140 Add 'build-multiarch-docker-images' profile to 'share-community-docker' --- docker-share/ags/pom.xml | 65 ++++++++++++++++++++++++++++++++++- scripts/dev/prepare_buildx.sh | 0 2 files changed, 64 insertions(+), 1 deletion(-) mode change 100644 => 100755 scripts/dev/prepare_buildx.sh diff --git a/docker-share/ags/pom.xml b/docker-share/ags/pom.xml index 258963d66..eea23c636 100644 --- a/docker-share/ags/pom.xml +++ b/docker-share/ags/pom.xml @@ -82,7 +82,70 @@ - + + build-multiarch-docker-images + + + + + io.fabric8 + docker-maven-plugin + + + + ${local.registry}/${image.name}:${image.tag} + + + ${builder.name} + + linux/amd64 + linux/arm64 + + + ${project.basedir} + + ${local.registry}/${base.image} + + + + + + + + build-push-image + install + + build + push + + + + + + exec-maven-plugin + org.codehaus.mojo + + + prepare-buildx + generate-sources + + exec + + + ${scripts.directory}/prepare_buildx.sh + + ${builder.name} + ${image.registry} + ${image.name} + ${image.tag} + + + + + + + + push-docker-images diff --git a/scripts/dev/prepare_buildx.sh b/scripts/dev/prepare_buildx.sh old mode 100644 new mode 100755