fix: conf

This commit is contained in:
zzjc1234 2024-10-17 16:18:38 +08:00
parent bcddc2a20d
commit 0bbf16f946

View File

@ -1,62 +1,35 @@
{ {
"stages": [ "stages" : [ {
{ "name" : "healthcheck",
"name": "healthcheck", "executor" : {
"executor": { "name" : "sandbox",
"name": "sandbox", "with" : {
"with": { "default" : {
"default": { "args" : [
"args": [ "./healthcheck", "-root=.",
"./healthcheck",
"-root=.",
"-whitelist=.*\\.md",
"-whitelist=.*\\.json",
"-whitelist=.git.*",
"-whitelist=.*\\.txt",
"-whitelist=stderr",
"-whitelist=stdout",
"-whitelist=\\.drone\\.yml",
"-whitelist=healthcheck",
"-checkFileNameList=.gitignore,.drone.yml", "-checkFileNameList=.gitignore,.drone.yml",
"-checkFileSumList=97392a850b161ccf64c1eb108c1c2931f9ce57c8e9bd5b6b1f54d34f82082ddc,sdkljflskjfk" "-checkFileSumList="
"97392a850b161ccf64c1eb108c1c2931f9ce57c8e9bd5b6b1f54d34f82082ddc,"
"sdkljflskjfk"
], ],
"env": [ "env" : ["PATH=/usr/bin:/bin"],
"PATH=/usr/bin:/bin" "cpuLimit" : 10000000000,
], "memoryLimit" : 104857600,
"cpuLimit": 10000000000, "procLimit" : 50,
"memoryLimit": 104857600, "copyInDir" : ".",
"procLimit": 50, "copyIn" : {
"copyInDir": ".", "healthcheck" : {"src" : "./../../../../../../build/healthcheck"}
"copyIn": {
"healthcheck": {
"src": "./../../../../../../build/healthcheck"
}
}, },
"copyOut": [ "copyOut" : [ "stdout", "stderr" ],
"stdout", "stdin" : {"content" : ""},
"stderr" "stdout" : {"name" : "stdout", "max" : 4096},
], "stderr" : {"name" : "stderr", "max" : 4096}
"stdin": {
"content": ""
},
"stdout": {
"name": "stdout",
"max": 4096
},
"stderr": {
"name": "stderr",
"max": 4096
}
} }
} }
}, },
"parser": { "parser" : {
"name": "healthcheck", "name" : "healthcheck",
"with": { "with" : {"score" : 10, "comment" : " + comment from toml conf"}
"score": 10,
"comment": " + comment from toml conf"
} }
} } ]
}
]
} }