Files
geointel/.gitea/workflows/runner-docker-diagnostic.yml
T
ChatGPT MCP 19726239ac
GeoIntel release gates / Compile, test, contracts and builds (pull_request) Canceled after 17s
GeoIntel release gates / Python and npm vulnerability policy (pull_request) Canceled after 0s
GeoIntel release gates / GIS image, SBOM and container scan (pull_request) Canceled after 0s
GeoIntel release gates / AI image, SBOM and container scan (pull_request) Canceled after 0s
Runner Docker diagnostic / diagnostic (push) Successful in 5s
ci: test isolated shared runner daemon
2026-08-28 17:53:13 +00:00

48 lines
1.3 KiB
YAML

name: Runner Docker diagnostic
on:
push:
branches:
- chatgpt/geointel-hardening-20260826
permissions:
contents: read
jobs:
diagnostic:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
DOCKER_HOST: tcp://gitea-runner-dind:2375
DOCKER_TLS_CERTDIR: ""
steps:
- name: Verify isolated shared runner daemon
shell: bash
run: |
set -euo pipefail
docker info >/tmp/docker-info.txt
docker version
mapfile -t visible_names < <(docker ps -a --format '{{.Names}}')
echo "visible-container-count=${#visible_names[@]}"
for name in "${visible_names[@]}"; do
case "$name" in
GITEA-ACTIONS-TASK-*) ;;
*)
echo "Unexpected non-Actions container visible: $name" >&2
exit 1
;;
esac
done
workdir="$(mktemp -d)"
printf 'geo-intel-ci\n' > "${workdir}/proof.txt"
cat > "${workdir}/Dockerfile" <<'EOF'
FROM scratch
COPY proof.txt /proof.txt
EOF
tag="geointel-runner-diagnostic:${GITHUB_RUN_ID:-local}-${GITHUB_RUN_ATTEMPT:-1}"
docker build --pull=false -t "$tag" "${workdir}"
docker image inspect "$tag" --format '{{.Id}}'
docker image rm "$tag" >/dev/null