debug: check /etc/ssl/cert.pem cert count in buildkit container
Some checks failed
Build and push telegraf-snmp image / build-and-push-image (push) Failing after 2m17s

This commit is contained in:
dresi 2026-06-11 07:28:52 +02:00
parent b65ef5c1df
commit 7c411c5a0f

View File

@ -36,15 +36,14 @@ jobs:
BUILDER=$(docker ps --filter "name=buildx_buildkit" --format "{{.Names}}" | head -1) BUILDER=$(docker ps --filter "name=buildx_buildkit" --format "{{.Names}}" | head -1)
echo "=== Builder: $BUILDER ===" echo "=== Builder: $BUILDER ==="
docker exec "$BUILDER" sh -c ' docker exec "$BUILDER" sh -c '
echo "=== SSL env vars in current shell ===" echo "=== Certs in ca-certificates.crt ==="
env | grep -iE "ssl|cert|tls|ca_" || echo "none" grep -c "BEGIN CERTIFICATE" /etc/ssl/certs/ca-certificates.crt 2>/dev/null || echo "not found"
echo "=== All env vars of buildkitd (PID 1) ===" echo "=== /etc/ssl/cert.pem ==="
cat /proc/1/environ 2>/dev/null | tr "\0" "\n" ls -la /etc/ssl/cert.pem 2>/dev/null || echo "not found"
echo "=== Certs in bundle ===" grep -c "BEGIN CERTIFICATE" /etc/ssl/cert.pem 2>/dev/null || echo "not found"
grep -c "BEGIN CERTIFICATE" /etc/ssl/certs/ca-certificates.crt 2>/dev/null || echo "bundle not found" echo "=== TLS test harbor.lan ==="
echo "=== TLS test harbor.lan root ==="
wget -qO /dev/null https://harbor.lan/ 2>&1 && echo "TLS OK" || echo "TLS FAILED" wget -qO /dev/null https://harbor.lan/ 2>&1 && echo "TLS OK" || echo "TLS FAILED"
echo "=== TLS test harbor.lan token endpoint ===" echo "=== TLS test token endpoint ==="
wget -qO /dev/null https://harbor.lan/service/token 2>&1 && echo "TLS OK" || echo "TLS FAILED" wget -qO /dev/null https://harbor.lan/service/token 2>&1 && echo "TLS OK" || echo "TLS FAILED"
' '