Skip to content

Commit 20a0940

Browse files
committed
add healthz check
1 parent 87b5630 commit 20a0940

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
packages: write
1212
contents: read
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
# Sets the latest release tag to env variable ${{ env.LATEST_RELEASE }}
1717
- name: Get latest release tag

index.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ function _callParent($function, $args) {
3535
exit;
3636
}
3737

38+
if (basename($_SERVER['DOCUMENT_URI'] ?? $_SERVER['REQUEST_URI']) === 'healthz') {
39+
header('Content-Type: text/plain');
40+
echo 'OK';
41+
exit;
42+
}
43+
3844
function adminer_object() {
3945
return \docker\adminer_object();
4046
}

0 commit comments

Comments
 (0)