debug: add TLS verification step in BuildKit container
Some checks failed
Build and push telegraf-snmp image / build-and-push-image (push) Failing after 1m57s
Some checks failed
Build and push telegraf-snmp image / build-and-push-image (push) Failing after 1m57s
This commit is contained in:
parent
4584136624
commit
e99e4da96c
@ -31,6 +31,19 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
driver-opts: image=harbor.lan/tools/buildkit-with-ca:latest
|
driver-opts: image=harbor.lan/tools/buildkit-with-ca:latest
|
||||||
|
|
||||||
|
- name: Debug TLS in BuildKit
|
||||||
|
run: |
|
||||||
|
BUILDER=$(docker ps --filter "name=buildx_buildkit" --format "{{.Names}}" | head -1)
|
||||||
|
echo "=== Builder: $BUILDER ==="
|
||||||
|
docker exec "$BUILDER" sh -c '
|
||||||
|
echo "=== Certs in bundle ==="
|
||||||
|
grep -c "BEGIN CERTIFICATE" /etc/ssl/certs/ca-certificates.crt 2>/dev/null || echo "bundle not found"
|
||||||
|
echo "=== TLS test to harbor.lan ==="
|
||||||
|
wget -qO /dev/null https://harbor.lan/ 2>&1 && echo "TLS OK" || echo "TLS FAILED"
|
||||||
|
echo "=== Last cert in bundle ==="
|
||||||
|
awk "/BEGIN CERT/{p=1} p{print} /END CERT/{p=0}" /etc/ssl/certs/ca-certificates.crt | tail -20
|
||||||
|
'
|
||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user