Reduce noise from app-json.py
This commit is contained in:
parent
028c7dbde5
commit
a26a0d27d7
@ -13,7 +13,7 @@ from os.path import basename, exists, expanduser
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from re import findall, search
|
from re import findall, search
|
||||||
from shlex import split
|
from shlex import split
|
||||||
from subprocess import check_output
|
from subprocess import check_output, DEVNULL
|
||||||
from sys import exit
|
from sys import exit
|
||||||
|
|
||||||
from requests import get
|
from requests import get
|
||||||
@ -31,6 +31,8 @@ REPOS_TO_SKIP = (
|
|||||||
"organising",
|
"organising",
|
||||||
"pyabra",
|
"pyabra",
|
||||||
"stack-ssh-deploy",
|
"stack-ssh-deploy",
|
||||||
|
"radicle-seed-node",
|
||||||
|
"coturn"
|
||||||
)
|
)
|
||||||
|
|
||||||
log = getLogger(__name__)
|
log = getLogger(__name__)
|
||||||
@ -38,10 +40,9 @@ basicConfig()
|
|||||||
log.setLevel(DEBUG)
|
log.setLevel(DEBUG)
|
||||||
|
|
||||||
|
|
||||||
def _run_cmd(cmd, shell=False):
|
def _run_cmd(cmd, shell=False, **kwargs):
|
||||||
"""Run a shell command."""
|
"""Run a shell command."""
|
||||||
args = [split(cmd)]
|
args = [split(cmd)]
|
||||||
kwargs = {}
|
|
||||||
|
|
||||||
if shell:
|
if shell:
|
||||||
args = [cmd]
|
args = [cmd]
|
||||||
@ -187,7 +188,8 @@ def get_app_versions(app_path, cached_apps_json):
|
|||||||
existing_tags = []
|
existing_tags = []
|
||||||
|
|
||||||
for tag in tags:
|
for tag in tags:
|
||||||
_run_cmd(f"git checkout {tag}")
|
_run_cmd(f"git checkout {tag}",
|
||||||
|
stderr=DEVNULL)
|
||||||
|
|
||||||
services_cmd = f"{YQ_PATH} e '.services | keys | .[]' compose*.yml"
|
services_cmd = f"{YQ_PATH} e '.services | keys | .[]' compose*.yml"
|
||||||
services = _run_cmd(services_cmd, shell=True).split()
|
services = _run_cmd(services_cmd, shell=True).split()
|
||||||
|
Loading…
Reference in New Issue
Block a user