Drop the apps.json in the cwd
This commit is contained in:
parent
bbab900ebc
commit
b61c9410a0
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
|
*.json
|
||||||
*.pyc
|
*.pyc
|
||||||
/.venv
|
/.venv
|
||||||
__pycache__
|
__pycache__
|
||||||
|
@ -33,7 +33,6 @@ REPOS_TO_SKIP = (
|
|||||||
"swarm-cronjob",
|
"swarm-cronjob",
|
||||||
)
|
)
|
||||||
YQ_PATH = Path(f"{HOME_PATH}/.abra/vendor/yq")
|
YQ_PATH = Path(f"{HOME_PATH}/.abra/vendor/yq")
|
||||||
SCRIPT_PATH = Path(__file__).absolute().parent
|
|
||||||
|
|
||||||
log = getLogger(__name__)
|
log = getLogger(__name__)
|
||||||
basicConfig()
|
basicConfig()
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
# https://apps.coopcloud.tech
|
# https://apps.coopcloud.tech
|
||||||
|
|
||||||
from json import dump
|
from json import dump
|
||||||
from os import chdir, listdir
|
from os import chdir, getcwd, listdir
|
||||||
from os.path import basename
|
from os.path import basename
|
||||||
from re import findall, search
|
from re import findall, search
|
||||||
from subprocess import DEVNULL
|
from subprocess import DEVNULL
|
||||||
@ -17,7 +17,6 @@ from requests import get
|
|||||||
from abralib import (
|
from abralib import (
|
||||||
CLONES_PATH,
|
CLONES_PATH,
|
||||||
REPOS_TO_SKIP,
|
REPOS_TO_SKIP,
|
||||||
SCRIPT_PATH,
|
|
||||||
YQ_PATH,
|
YQ_PATH,
|
||||||
_run_cmd,
|
_run_cmd,
|
||||||
clone_all_apps,
|
clone_all_apps,
|
||||||
@ -198,7 +197,7 @@ def main():
|
|||||||
repos_json = get_repos_json()
|
repos_json = get_repos_json()
|
||||||
clone_all_apps(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:
|
with open(target, "w", encoding="utf-8") as handle:
|
||||||
dump(
|
dump(
|
||||||
generate_apps_json(repos_json),
|
generate_apps_json(repos_json),
|
||||||
|
Reference in New Issue
Block a user