This commit is contained in:
@@ -5,9 +5,18 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: docker:24.0-cli
|
image: docker:24.0-cli
|
||||||
volumes:
|
options: >-
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
-v /var/run/docker.sock:/var/run/docker.sock
|
||||||
- /opt/freedom:/opt/freedom
|
-v /opt/freedom:/opt/freedom
|
||||||
|
--add-host host.docker.internal:host-gateway
|
||||||
steps:
|
steps:
|
||||||
- name: Hello
|
- name: Verify mounts
|
||||||
run: echo hello-with-volumes
|
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}}'
|
||||||
|
|||||||
Reference in New Issue
Block a user