Further fixes to apps json generator
This commit is contained in:
parent
85670538c6
commit
cd647f090b
@ -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(
|
||||
|
Reference in New Issue
Block a user