fix deploy py

This commit is contained in:
Sergej Kern 2026-01-20 20:40:12 +01:00
parent 25794b7148
commit 8ec0b9dfaa
1 changed files with 5 additions and 4 deletions

View File

@ -13,12 +13,12 @@ from dotenv import load_dotenv
def log_info(message: str):
"""Print info message"""
print(f" {message}")
print(f"[+] {message}")
def log_error(message: str):
"""Print error message"""
print(f" Error: {message}", file=sys.stderr)
print(f"[!] Error: {message}", file=sys.stderr)
def run_command(command: list[str], description: str) -> bool:
@ -61,8 +61,9 @@ def main():
# Configuration
gitea_server = "https://brokkr.robotico.dev"
gitea_domain = "brokkr.robotico.dev" # Domain without https:// for Docker registry
gitea_owner = "dalex"
registry = f"{gitea_server}/{gitea_owner}"
registry = f"{gitea_domain}/{gitea_owner}"
# Image names
backend_local = "todolist-proto-backend:latest"
@ -97,7 +98,7 @@ def main():
# Login to Gitea registry
log_info("Logging in to Gitea registry...")
login_process = subprocess.Popen(
["docker", "login", gitea_server, "-u", gitea_owner, "--password-stdin"],
["docker", "login", gitea_domain, "-u", gitea_owner, "--password-stdin"],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,