Fix handling of existing tags
This commit is contained in:
parent
25b916d969
commit
2599cff4cb
@ -177,10 +177,6 @@ def get_app_versions(app_path, cached_apps_json):
|
|||||||
existing_tags = []
|
existing_tags = []
|
||||||
|
|
||||||
for tag in tags:
|
for tag in tags:
|
||||||
if tag in existing_tags:
|
|
||||||
log.info(f"Skipping {tag} because we've already processed it")
|
|
||||||
continue
|
|
||||||
|
|
||||||
_run_cmd(f"git checkout {tag}")
|
_run_cmd(f"git checkout {tag}")
|
||||||
|
|
||||||
services_cmd = "yq e '.services | keys | .[]' compose*.yml"
|
services_cmd = "yq e '.services | keys | .[]' compose*.yml"
|
||||||
@ -189,7 +185,18 @@ def get_app_versions(app_path, cached_apps_json):
|
|||||||
parsed_services = []
|
parsed_services = []
|
||||||
service_versions = {}
|
service_versions = {}
|
||||||
for service in services:
|
for service in services:
|
||||||
|
if service in ("null", "---"):
|
||||||
|
continue
|
||||||
|
|
||||||
|
if tag in existing_tags:
|
||||||
|
log.info(f"Skipping {tag} because we've already processed it")
|
||||||
|
existing_versions = cached_apps_json[app_name]["versions"][tag][service]
|
||||||
|
service_versions[service] = existing_versions
|
||||||
|
_run_cmd(f"git checkout {initial_branch}")
|
||||||
|
continue
|
||||||
|
|
||||||
if service in parsed_services:
|
if service in parsed_services:
|
||||||
|
log.info(f"Skipped {service} asa we've already parsed it locally")
|
||||||
continue
|
continue
|
||||||
|
|
||||||
services_cmd = f"yq e '.services.{service}.image' compose*.yml"
|
services_cmd = f"yq e '.services.{service}.image' compose*.yml"
|
||||||
|
Loading…
Reference in New Issue
Block a user