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
1 changed files with 6 additions and 4 deletions

View File

@ -5,11 +5,13 @@ source util/vars.sh
export DOCKER_BUILDKIT=1
if grep "FROM.*base.*" "images/base-${TARGET}/Dockerfile" >/dev/null 2>&1; then
docker build --tag "$BASE_IMAGE" images/base
fi
if [[ -z "$QUICKBUILD" ]]; then
if grep "FROM.*base.*" "images/base-${TARGET}/Dockerfile" >/dev/null 2>&1; then
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[@]}"