Further fixes to apps json generator

This commit is contained in:
decentral1se 2021-04-02 16:35:29 +02:00
parent 85670538c6
commit cd647f090b
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A
1 changed files with 4 additions and 4 deletions

View File

@ -95,12 +95,12 @@ def get_app_versions(app_path):
chdir(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: 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() services = check_output(services_command, shell=True).decode("utf-8").split()
for service in services: for service in services:
@ -111,7 +111,7 @@ def get_app_versions(app_path):
if image in ("null", "---"): if image in ("null", "---"):
continue 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") output = check_output(digest_command, shell=True).decode("utf-8")
digest = output.strip().split(":")[-1][:8] digest = output.strip().split(":")[-1][:8]
versions.append( versions.append(