This commit is contained in:
2025-08-02 00:54:09 -04:00
parent c50ea12b20
commit 2afb08671c
3 changed files with 6 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ def handle_request(rq: DeployerRequest):
f"{domain}-build-{deployment_id}",
"sh",
"-c",
f"/path/to/build.sh > {build_log} 2>&1",
f"./build.sh > {build_log} 2>&1",
],
user="root",
shell=True,

View File

@@ -40,6 +40,9 @@ status:
log:
\tjournalctl -u deployer-$DOMAIN
cleanlogs:
\trm -rf $LOGS_DIR
buildlog:
\ttmux a -r -t $DOMAIN-build-$DEPLOYMENT_ID

View File

@@ -1,11 +1,11 @@
from deploy import DeployerRequest, handle_request
import sys
# foo
handle_request(
DeployerRequest(
user="drm",
repo="deployer",
branch="main",
commit_hash="14e7d578bbb69ae08ba2533003f6ad284b325809",
commit_hash=sys.argv[1],
)
)