Add option to skip base image (re)build
This commit is contained in:
parent
54877f1db8
commit
dbd238fcde
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
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
|
||||
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[@]}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue