Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

ci/build.py --no-pull #18589

Merged
merged 1 commit into from
Jul 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion ci/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ def main() -> int:
default=1,
type=int)

parser.add_argument("--no-pull", action="store_true",
help="Don't pull from dockerhub registry to initialize cache.")

parser.add_argument("--no-cache", action="store_true",
help="passes --no-cache to docker build")

Expand Down Expand Up @@ -394,7 +397,7 @@ def main() -> int:
elif args.platform:
platform = args.platform
tag = get_docker_tag(platform=platform, registry=args.docker_registry)
if args.docker_registry:
if args.docker_registry and not args.no_pull:
load_docker_cache(tag=tag, docker_registry=args.docker_registry)
if not args.run_only:
build_docker(platform=platform, registry=args.docker_registry, num_retries=args.docker_build_retries,
Expand Down