duh
This commit is contained in:
@@ -54,7 +54,7 @@ def handle_request(rq: DeployerRequest):
|
|||||||
f"{domain}-build-{deployment_id}",
|
f"{domain}-build-{deployment_id}",
|
||||||
"sh",
|
"sh",
|
||||||
"-c",
|
"-c",
|
||||||
f"/path/to/build.sh > {build_log} 2>&1",
|
f"./build.sh > {build_log} 2>&1",
|
||||||
],
|
],
|
||||||
user="root",
|
user="root",
|
||||||
shell=True,
|
shell=True,
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ status:
|
|||||||
log:
|
log:
|
||||||
\tjournalctl -u deployer-$DOMAIN
|
\tjournalctl -u deployer-$DOMAIN
|
||||||
|
|
||||||
|
cleanlogs:
|
||||||
|
\trm -rf $LOGS_DIR
|
||||||
|
|
||||||
buildlog:
|
buildlog:
|
||||||
\ttmux a -r -t $DOMAIN-build-$DEPLOYMENT_ID
|
\ttmux a -r -t $DOMAIN-build-$DEPLOYMENT_ID
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
from deploy import DeployerRequest, handle_request
|
from deploy import DeployerRequest, handle_request
|
||||||
|
import sys
|
||||||
|
|
||||||
# foo
|
|
||||||
handle_request(
|
handle_request(
|
||||||
DeployerRequest(
|
DeployerRequest(
|
||||||
user="drm",
|
user="drm",
|
||||||
repo="deployer",
|
repo="deployer",
|
||||||
branch="main",
|
branch="main",
|
||||||
commit_hash="14e7d578bbb69ae08ba2533003f6ad284b325809",
|
commit_hash=sys.argv[1],
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user