Drop the apps.json in the cwd
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @ -1,3 +1,4 @@ | ||||
| *.json | ||||
| *.pyc | ||||
| /.venv | ||||
| __pycache__ | ||||
|  | ||||
| @ -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() | ||||
|  | ||||
| @ -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), | ||||
|  | ||||
		Reference in New Issue
	
	Block a user