fix pathing

This commit is contained in:
Lucas Briese 2021-11-08 20:50:50 +01:00
parent 0656e248b4
commit e0f23570a5

View File

@ -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