From e0f23570a522d7ca31f04c33ee19d75d95b2a525 Mon Sep 17 00:00:00 2001 From: Lucas Briese Date: Mon, 8 Nov 2021 20:50:50 +0100 Subject: [PATCH] fix pathing --- test/testBuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testBuild.sh b/test/testBuild.sh index b4100a6..9df967f 100644 --- a/test/testBuild.sh +++ b/test/testBuild.sh @@ -17,11 +17,11 @@ set -o pipefail function process() { tag_prefix="$1" - subdir="$2" + target="$2" cache_option="$(grep -qF -e '--no-cache' <<< "$@" && echo "--no-cache" || echo "")" docker rmi "$repository:$tag_prefix${SUFFIX}" || true - docker build --target "$subdir" $cache_option -t "$repository:$tag_prefix${SUFFIX}" "$subdir/" + docker build --target "$target" $cache_option -t "$repository:$tag_prefix${SUFFIX}" . if "$PUSH"; then docker push "$repository:$tag_prefix${SUFFIX}" fi