Expose docker tag information using the API

This information is available since the introduction of `versions` file.
Docker info is shown by `pihole -v` and the web interface footer, but
it was never added to the versions API.

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign
2023-04-02 19:42:28 -03:00
parent a03bbb2380
commit e540bca1d4
+7
View File
@@ -71,6 +71,13 @@ if (isset($_GET['enable']) && $auth) {
$branches = array('core_branch' => $core_branch,
'web_branch' => $web_branch,
'FTL_branch' => $FTL_branch, );
if (isset($versions['DOCKER_VERSION'])) {
// Docker info is available only inside containers
$updates['docker_update'] = $docker_update;
$current['docker_current'] = $docker_current;
$latest['docker_latest'] = $docker_latest;
}
$data = array_merge($data, $updates);
$data = array_merge($data, $current);
$data = array_merge($data, $latest);