Further fixes to apps json generator

This commit is contained in:
decentral1se 2021-04-02 16:35:29 +02:00
parent 85670538c6
commit cd647f090b
Signed by untrusted user who does not match committer: decentral1se
GPG Key ID: 92DAD76BD9567B8A

View File

@ -95,12 +95,12 @@ def get_app_versions(app_path):
chdir(app_path)
tags = check_output(f"git tag --list", shell=True).strip()
tags = check_output(f"git tag --list", shell=True).decode("utf-8").strip().split()
for tag in tags:
run(f"git checkout", shell=True)
run(f"git checkout {tag}", shell=True)
services_command = "yq e .services | keys | .[] compose*.yml"
services_command = "yq e '.services | keys | .[]' compose*.yml"
services = check_output(services_command, shell=True).decode("utf-8").split()
for service in services:
@ -111,7 +111,7 @@ def get_app_versions(app_path):
if image in ("null", "---"):
continue
digest_command = f"skopeo inspect {image} | yq '.Digest'"
digest_command = f"skopeo inspect docker://{image} | jq '.Digest'"
output = check_output(digest_command, shell=True).decode("utf-8")
digest = output.strip().split(":")[-1][:8]
versions.append(