Support multiple compose files for app json generation
Closes coop-cloud/abra#127.
This commit is contained in:
parent
0369a18c6e
commit
abfb1c6404
@ -159,8 +159,12 @@ def get_app_versions(app_path):
|
||||
services_cmd = "yq e '.services | keys | .[]' compose*.yml"
|
||||
services = _run_cmd(services_cmd, shell=True).split()
|
||||
|
||||
parsed_services = []
|
||||
service_versions = {}
|
||||
for service in services:
|
||||
if service in parsed_services:
|
||||
continue
|
||||
|
||||
services_cmd = f"yq e '.services.{service}.image' compose*.yml"
|
||||
images = _run_cmd(services_cmd, shell=True).split()
|
||||
|
||||
@ -180,6 +184,8 @@ def get_app_versions(app_path):
|
||||
log.info(f"Parsed {service_version_info}")
|
||||
service_versions[service] = service_version_info
|
||||
|
||||
parsed_services.append(service)
|
||||
|
||||
versions[tag] = service_versions
|
||||
|
||||
_run_cmd("git checkout HEAD")
|
||||
|
Reference in New Issue
Block a user