From de1f8dac194a32848c386bc22a8640c372966955 Mon Sep 17 00:00:00 2001 From: Jordan Dubrick Date: Wed, 15 May 2024 16:23:55 -0400 Subject: [PATCH] add build folder Signed-off-by: Jordan Dubrick --- oci-registry/build-multi-arch.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oci-registry/build-multi-arch.sh b/oci-registry/build-multi-arch.sh index 30e715e7..99b88f9e 100644 --- a/oci-registry/build-multi-arch.sh +++ b/oci-registry/build-multi-arch.sh @@ -15,6 +15,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +buildfolder="$(basename "$(dirname "$0")")" # Due to command differences between podman and docker we need to separate the process # for creating and adding images to a multi-arch manifest podman=${USE_PODMAN:-false} @@ -24,7 +25,7 @@ function build { IMAGE="quay.io/rh-ee-jdubrick/oci-registry:$2" echo "Building: ${IMAGE}" - $1 build -t $IMAGE --platform "linux/$2" . + $1 build -t $IMAGE --platform "linux/$2" "$buildfolder" echo "Tagging: ${IMAGE}" $1 tag "$IMAGE" "$IMAGE"