Add option to skip base image (re)build

This commit is contained in:
BtbN 2021-07-07 14:37:58 +02:00
parent 54877f1db8
commit dbd238fcde

View file

@ -5,11 +5,13 @@ source util/vars.sh
export DOCKER_BUILDKIT=1 export DOCKER_BUILDKIT=1
if grep "FROM.*base.*" "images/base-${TARGET}/Dockerfile" >/dev/null 2>&1; then if [[ -z "$QUICKBUILD" ]]; then
docker build --tag "$BASE_IMAGE" images/base if grep "FROM.*base.*" "images/base-${TARGET}/Dockerfile" >/dev/null 2>&1; then
fi docker build --tag "$BASE_IMAGE" images/base
fi
docker build --build-arg GH_REPO="$REPO" --tag "$TARGET_IMAGE" "images/base-${TARGET}" docker build --build-arg GH_REPO="$REPO" --tag "$TARGET_IMAGE" "images/base-${TARGET}"
fi
./generate.sh "$TARGET" "$VARIANT" "${ADDINS[@]}" ./generate.sh "$TARGET" "$VARIANT" "${ADDINS[@]}"