Files
ci-test/.gitea/workflows/test.yml
T
dev 3a8b80414c
CI Test / test (push) Failing after 1s
test: container options with -v binds
2026-08-31 11:32:49 +08:00

23 lines
709 B
YAML

name: CI Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
container:
image: docker:24.0-cli
options: >-
-v /var/run/docker.sock:/var/run/docker.sock
-v /opt/freedom:/opt/freedom
--add-host host.docker.internal:host-gateway
steps:
- name: Verify mounts
run: |
echo "=== /opt/freedom ==="
ls /opt/freedom | head -5
echo "=== docker.sock ==="
test -S /var/run/docker.sock && echo SOCK_OK || echo SOCK_NO
echo "=== host resolution ==="
getent hosts host.docker.internal || echo NOT_RESOLVED
echo "=== docker version ==="
docker version --format '{{.Server.Version}}'