Drop the apps.json in the cwd

This commit is contained in:
decentral1se 2021-06-05 08:26:43 +02:00
parent bbab900ebc
commit b61c9410a0
Signed by untrusted user who does not match committer: decentral1se
GPG Key ID: 92DAD76BD9567B8A
3 changed files with 3 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
*.json
*.pyc
/.venv
__pycache__

View File

@ -33,7 +33,6 @@ REPOS_TO_SKIP = (
"swarm-cronjob",
)
YQ_PATH = Path(f"{HOME_PATH}/.abra/vendor/yq")
SCRIPT_PATH = Path(__file__).absolute().parent
log = getLogger(__name__)
basicConfig()

View File

@ -7,7 +7,7 @@
# https://apps.coopcloud.tech
from json import dump
from os import chdir, listdir
from os import chdir, getcwd, listdir
from os.path import basename
from re import findall, search
from subprocess import DEVNULL
@ -17,7 +17,6 @@ from requests import get
from abralib import (
CLONES_PATH,
REPOS_TO_SKIP,
SCRIPT_PATH,
YQ_PATH,
_run_cmd,
clone_all_apps,
@ -198,7 +197,7 @@ def main():
repos_json = get_repos_json()
clone_all_apps(repos_json)
target = f"{SCRIPT_PATH}/../deploy/apps.coopcloud.tech/apps.json"
target = f"{getcwd()}/apps.json"
with open(target, "w", encoding="utf-8") as handle:
dump(
generate_apps_json(repos_json),