ci: 探针——确认 runner job 容器内 docker/ssh 可用性
This commit is contained in:
1 parent
a28fa1e775
commit
1f0c9fee74
1 file changed
+22
@@ -0,0 +1,22 @@
|
||||
# 探针:确认 Gitea Actions job 容器内的工具可用性(验证后可删除)
|
||||
name: probe-runner
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
probe:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Probe tools
|
||||
run: |
|
||||
echo "=== docker client/server ==="
|
||||
docker version --format 'client={{.Client.Version}} server={{.Server.Version}}' 2>&1 | head -3
|
||||
echo "=== docker socket ==="
|
||||
ls -la /var/run/docker.sock 2>&1 || true
|
||||
echo "=== ssh / scp / rsync ==="
|
||||
which ssh scp rsync 2>&1 || true
|
||||
echo "=== whoami/home ==="
|
||||
whoami; echo HOME=$HOME
|
||||
Reference in new issue
Block a user