Lint & general cleanup

This commit is contained in:
Cian Hughes
2024-01-10 17:05:07 +00:00
parent 5fb70cae60
commit 465eb89ab8
3 changed files with 63 additions and 68 deletions

12
deploy
View File

@@ -1,12 +1,12 @@
#!/usr/bin/env poetry run python
from typing import Optional
import typer # type: ignore
import subprocess
import portainer # type: ignore
import docker # type: ignore
from typing import Optional
import docker # type: ignore
import portainer # type: ignore
import tomllib
from pathlib import Path
import typer # type: ignore
def docker_deploy_core(stack_name: Optional[str] = "core"):
@@ -52,8 +52,6 @@ def docker_deploy_stack(username: str, password: str, stack_name: Optional[str]
repository_url=fetch_repository_url(),
)
)
# breakpoint() #! TODO: Implement way of using portainer api to deploy stack
# subprocess.run(["docker", "stack", "deploy", "-c", "stack.yaml", stack_name])
def docker_deploy_all(username: str, password: str, core_name: Optional[str] = "core", stack_name: Optional[str] = "stack"):