Use vendored JQ
This commit is contained in:
parent
3a97358f30
commit
9f69532dca
@ -33,6 +33,7 @@ REPOS_TO_SKIP = (
|
||||
"swarm-cronjob",
|
||||
)
|
||||
YQ_PATH = Path(f"{HOME_PATH}/.abra/vendor/yq")
|
||||
JQ_PATH = Path(f"{HOME_PATH}/.abra/vendor/jq")
|
||||
|
||||
log = getLogger(__name__)
|
||||
basicConfig()
|
||||
|
@ -16,6 +16,7 @@ from requests import get
|
||||
|
||||
from abralib import (
|
||||
CLONES_PATH,
|
||||
JQ_PATH,
|
||||
REPOS_TO_SKIP,
|
||||
YQ_PATH,
|
||||
_run_cmd,
|
||||
@ -171,7 +172,7 @@ def get_app_versions(app_path, cached_apps_json):
|
||||
if image in ("null", "---"):
|
||||
continue
|
||||
|
||||
images_cmd = f"skopeo inspect docker://{image} | jq '.Digest'"
|
||||
images_cmd = f"skopeo inspect docker://{image} | {JQ_PATH} '.Digest'"
|
||||
output = _run_cmd(images_cmd, shell=True)
|
||||
|
||||
service_version_info = {
|
||||
|
Reference in New Issue
Block a user