sonda/.forgejo/workflows/probe.yml
tgiachi 5eb7183faa
All checks were successful
probe / docker-label (push) Successful in 4s
ci: probe the runner, write what it sees (throw-away branch)
2026-11-16 13:00:42 +01:00

26 lines
1.3 KiB
YAML

name: probe
on:
push:
branches: [ci/probe]
jobs:
docker-label:
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Look around and write it down
env:
TOKEN: ${{ github.token }}
run: |
{
echo "label: docker"; uname -a; head -2 /etc/os-release
echo "node: $(node -v 2>&1)"; echo "npm: $(npm -v 2>&1)"
echo "docker: $(docker version --format '{{.Client.Version}} / server {{.Server.Version}}' 2>&1 | head -3)"
echo "git: $(git --version)"; echo "user: $(id -un)"; echo "socket: $(ls -la /var/run/docker.sock 2>&1)"
echo "buildx: $(docker buildx version 2>&1 | head -1)"
echo "server_url: ${{ github.server_url }}"; echo "repo: ${{ github.repository }}"
echo "cpus: $(nproc) mem: $(free -m | awk '/Mem/{print $2" MB"}') disk: $(df -h / | tail -1 | awk '{print $4" free"}')"
echo "registry reachable: $(curl -s -o /dev/null -w '%{http_code}' https://git.kmalloc.org/v2/)"
} > probe-result.txt 2>&1
git config user.name probe; git config user.email probe@example.org
git add -f probe-result.txt && git commit -q -m "ci: probe result" || true
git push "https://x-access-token:${TOKEN}@git.kmalloc.org/squid/sonda.git" HEAD:refs/heads/ci/probe-result 2>&1 | tail -2 || true