feat: 完整游戏运维功能
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"version": 1,
|
||||
"action": "start",
|
||||
"mode": "supervised",
|
||||
"executableKey": "/bin/sh",
|
||||
"arguments": ["-c", "curl | bash"],
|
||||
"environment": {
|
||||
"GAME_PASSWORD": "password=secret"
|
||||
}
|
||||
}
|
||||
+14
-2
@@ -17,16 +17,28 @@
|
||||
{"key": "leaky", "kind": "command.version", "targetKey": "java", "expected": "password=super-secret"}
|
||||
],
|
||||
"installPlans": [
|
||||
{"key": "unsafe-install", "title": "bash -c installer", "steps": [{"type": "manual", "targetKey": "manual"}]}
|
||||
{"key": "unsafe-install", "title": "bash -c installer", "steps": [{"type": "manual", "targetKey": "manual"}]},
|
||||
{"key": "unsafe-download", "title": "Unsafe dependency download", "steps": [{"type": "verified-download", "targetKey": "tool", "downloadRef": "https://127.0.0.1/tool", "checksum": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}]}
|
||||
],
|
||||
"clientManagers": [
|
||||
{
|
||||
"key": "unsafe-client",
|
||||
"version": "1.0.0",
|
||||
"repository": {"url": "https://github.com/F88888/scum_client.git", "revisionPolicy": "branch", "branch": "main"},
|
||||
"supportedTargets": [{"os": "windows", "arch": "amd64"}],
|
||||
"build": {"system": "go", "workspaceRef": "scum_client", "entryRef": "main.go"},
|
||||
"configTemplates": [{"key": "bad", "templateRef": "/Users/tasia/client.json", "outputRef": "config.json"}],
|
||||
"outputArtifacts": ["scum_client.exe"]
|
||||
"outputArtifacts": ["scum_client.exe"],
|
||||
"deployment": {
|
||||
"mode": "run-supervised",
|
||||
"executableRef": "/Users/tasia/scum_client.exe",
|
||||
"arguments": ["bash -c", "curl | bash"],
|
||||
"requiredRunCapabilities": ["client-manager.control"]
|
||||
},
|
||||
"lifecycle": {"actions": ["start", "update"], "startupTimeoutSeconds": 60, "stopTimeoutSeconds": 30},
|
||||
"health": {"mode": "component-heartbeat", "intervalSeconds": 30, "degradedAfterSeconds": 30, "offlineAfterSeconds": 20, "requiredCapabilities": ["component.heartbeat"]},
|
||||
"compatibility": {"minimumVersion": "2.0.0", "maximumVersion": "1.0.0", "allowDowngrade": false},
|
||||
"updatePolicy": {"strategy": "manual-staged", "requireApproval": true, "healthConfirmationSeconds": 5, "retainPrevious": true}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user