forked from toolshed/abra-bash
		
	Use abra's vendored copy of yq instead of system
This commit is contained in:
		| @ -20,6 +20,7 @@ from requests import get | ||||
|  | ||||
| HOME_PATH = expanduser("~/") | ||||
| CLONES_PATH = Path(f"{HOME_PATH}/.abra/apps").absolute() | ||||
| YQ_PATH = Path(f"{HOME_PATH}/.abra/vendor/yq") | ||||
| SCRIPT_PATH = Path(__file__).absolute().parent | ||||
| REPOS_TO_SKIP = ( | ||||
|     "abra", | ||||
| @ -179,7 +180,7 @@ def get_app_versions(app_path, cached_apps_json): | ||||
|     for tag in tags: | ||||
|         _run_cmd(f"git checkout {tag}") | ||||
|  | ||||
|         services_cmd = "yq e '.services | keys | .[]' compose*.yml" | ||||
|         services_cmd = f"{YQ_PATH} e '.services | keys | .[]' compose*.yml" | ||||
|         services = _run_cmd(services_cmd, shell=True).split() | ||||
|  | ||||
|         parsed_services = [] | ||||
| @ -199,7 +200,7 @@ def get_app_versions(app_path, cached_apps_json): | ||||
|                 log.info(f"Skipped {service} asa we've already parsed it locally") | ||||
|                 continue | ||||
|  | ||||
|             services_cmd = f"yq e '.services.{service}.image' compose*.yml" | ||||
|             services_cmd = f"{YQ_PATH} e '.services.{service}.image' compose*.yml" | ||||
|             images = _run_cmd(services_cmd, shell=True).split() | ||||
|  | ||||
|             for image in images: | ||||
|  | ||||
		Reference in New Issue
	
	Block a user