2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-22 22:58:31 +00:00

fix: easy-install.py build to set tag only if empty

This commit is contained in:
Revant Nandgaonkar 2024-10-27 15:58:16 +05:30
parent 82e4b2c148
commit 6c97d92917

View File

@ -350,7 +350,6 @@ def add_build_parser(argparser: argparse.ArgumentParser):
dest="tags", dest="tags",
help="Full Image Name(s), default: custom-apps:latest", help="Full Image Name(s), default: custom-apps:latest",
action="append", action="append",
default=["custom-apps:latest"],
) )
build.add_argument( build.add_argument(
"-c", "-c",
@ -384,6 +383,10 @@ def build_image(
if not check_repo_exists(): if not check_repo_exists():
clone_frappe_docker_repo() clone_frappe_docker_repo()
install_docker() install_docker()
if not tags:
tags = ["custom-apps:latest"]
apps_json_base64 = None apps_json_base64 = None
try: try:
with open(apps_json_path, "rb") as file_text: with open(apps_json_path, "rb") as file_text: