We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af0982b commit c82ee7bCopy full SHA for c82ee7b
.github/workflows/ci.yml
@@ -32,14 +32,15 @@ jobs:
32
v=$(mount | grep "/run/docker.sock")
33
TARGET_HOST=
34
35
- if [ -n "$v" ]; then
+ if [[ -n "$v" ]]; then
36
echo "Injected docker socket detected"
37
TARGET_HOST="host.docker.internal"
38
- elif [ -S /var/run/docker.sock ]; then
+ elif [[ -S /var/run/docker.sock ]]; then
39
+ echo "Local docker socket detected"
40
TARGET_HOST="localhost"
41
else
- echo "No Docker socket detected, fail"
42
- exit 1
+ echo "No docker socket detected, falling back"
43
+ TARGET_HOST="localhost"
44
fi
45
echo "TARGET_HOST=${TARGET_HOST}" >> $GITHUB_ENV
46
-
0 commit comments