Fix handling of existing tags

This commit is contained in:
decentral1se 2021-04-03 21:07:03 +02:00
parent 25b916d969
commit 2599cff4cb
Signed by untrusted user who does not match committer: decentral1se
GPG Key ID: 92DAD76BD9567B8A

View File

@ -177,10 +177,6 @@ def get_app_versions(app_path, cached_apps_json):
existing_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}")
services_cmd = "yq e '.services | keys | .[]' compose*.yml"
@ -189,7 +185,18 @@ def get_app_versions(app_path, cached_apps_json):
parsed_services = []
service_versions = {}
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:
log.info(f"Skipped {service} asa we've already parsed it locally")
continue
services_cmd = f"yq e '.services.{service}.image' compose*.yml"