chek deployments
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
root
2024-08-22 18:18:40 +02:00
parent eca452ba26
commit f678bd8731

View File

@@ -55,16 +55,9 @@ switch ($_GET["op"]) {
}
redis_remove("$key");
}
}
}
else echo "WAIT";
$arr = check_redis("web_out","repositories");
if (!empty($arr)) {
foreach ($arr as $key=>$data) {
}
}
else echo "";
break;
case "deployments":
$arr = array("STATUS" => 0);
@@ -74,6 +67,21 @@ switch ($_GET["op"]) {
redis_set($op,$json);
echo "OK"; // TODO?
break;
case "check_deployments":
$arr = check_redis("web_out","deployments");
if (!empty($arr)) {
foreach ($arr as $key=>$data) {
if ($key=="deployments") {
foreach ($data["INSTALLED_SERVICES"] as $service_name => $content) {
//echo base64_decode($content);
echo $service_name."<br>";
}
//redis_remove("$key");
}
}
}
else echo "";
break;
case "repositories":
$arr = array("STATUS" => 0);
$json = json_encode($arr, JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT);
@@ -87,7 +95,7 @@ switch ($_GET["op"]) {
if (!empty($arr)) {
foreach ($arr as $key=>$data) {
if ($key=="repositories") {
echo base64_decode($data["RESULT"]);
echo base64_decode($data["REPOSITORIES"]);
redis_remove("$key");
}
}