mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
docker: introduce DOCKER_SKIP_UPDATE=yes to skip updating prebuilt Docker image, only when using
This commit is contained in:
committed by
Igor Pečovnik
parent
40c5df55ab
commit
fe7a24885b
@@ -262,7 +262,10 @@ function docker_cli_prepare_dockerfile() {
|
||||
declare c="" # Nothing; commands will run.
|
||||
if [[ "${DOCKER_SIMULATE_CLEAN}" == "yes" ]]; then
|
||||
display_alert "Simulating" "clean build, due to DOCKER_SIMULATE_CLEAN=yes -- this is wasteful and slow and only for debugging" "warn"
|
||||
c="## " # Add comment to simulate clean env
|
||||
c="## Disabled by DOCKER_SIMULATE_CLEAN #" # Add comment to simulate clean env
|
||||
elif [[ "${DOCKER_SKIP_UPDATE}" == "yes" && "${DOCKERFILE_USE_ARMBIAN_IMAGE_AS_BASE}" != "no" ]]; then
|
||||
display_alert "Skipping Docker updates" "make sure base image '${DOCKER_ARMBIAN_BASE_IMAGE}' is up-to-date" "" "info"
|
||||
c="## Disabled by DOCKER_SKIP_UPDATE # " # Add comment to simulate clean env
|
||||
fi
|
||||
|
||||
declare c_req="# " # Nothing; commands will run.
|
||||
|
||||
Reference in New Issue
Block a user