kin: auto-commit after pipeline
This commit is contained in:
parent
88e855dc9e
commit
f9a9af3271
2 changed files with 142 additions and 2 deletions
|
|
@ -7,6 +7,7 @@ Business logic for project deployments:
|
|||
- Dependency chain traversal via project_links
|
||||
"""
|
||||
|
||||
import shlex
|
||||
import sqlite3
|
||||
import subprocess
|
||||
import time
|
||||
|
|
@ -50,7 +51,7 @@ def _build_ssh_cmd(project: dict, command: str) -> list[str]:
|
|||
proxy_jump = project.get("ssh_proxy_jump")
|
||||
deploy_path = project.get("deploy_path")
|
||||
|
||||
full_cmd = f"cd {deploy_path} && {command}" if deploy_path else command
|
||||
full_cmd = f"cd {shlex.quote(deploy_path)} && {command}" if deploy_path else command
|
||||
|
||||
cmd = ["ssh"]
|
||||
if ssh_key:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue