Add Apache status monitoring to Helm chart
Publish PHP Apache image / Build, test and push (push) Successful in 1m10s

This commit is contained in:
feedc0de committed 2026-09-10 20:49:26 +02:00
1 parent 0396053c47
commit 5acc3b0154
11 files changed
+260 -7

No files matched your search

+16
View File
@@ -57,6 +57,22 @@ jobs:
run: |
set -euo pipefail
docker run --rm --entrypoint httpd "${IMAGE}:${COMMIT_SHA}" -t
docker run --rm \
--env APACHE_SERVER_ADMIN=ci@example.invalid \
--entrypoint /bin/bash \
"${IMAGE}:${COMMIT_SHA}" \
-euc '
httpd
php -r '\''
$status = file_get_contents("http://127.0.0.1:8080/server-status?auto");
if ($status === false || !str_contains($status, "ServerVersion:")) {
fwrite(STDERR, "Apache server-status smoke test failed.\n");
exit(1);
}
echo "Apache server-status smoke test passed.\n";
'\''
httpd -k stop
'
docker run --rm --entrypoint php "${IMAGE}:${COMMIT_SHA}" -r '
foreach (["exif", "gd", "intl", "Zend OPcache", "pgsql", "pdo_pgsql"] as $extension) {
if (!extension_loaded($extension)) {