Skip to content

Commit c82ee7b

Browse files
author
Bryan Latten
committed
CI: fallback without socket
1 parent af0982b commit c82ee7b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@ jobs:
3232
v=$(mount | grep "/run/docker.sock")
3333
TARGET_HOST=
3434
35-
if [ -n "$v" ]; then
35+
if [[ -n "$v" ]]; then
3636
echo "Injected docker socket detected"
3737
TARGET_HOST="host.docker.internal"
38-
elif [ -S /var/run/docker.sock ]; then
38+
elif [[ -S /var/run/docker.sock ]]; then
39+
echo "Local docker socket detected"
3940
TARGET_HOST="localhost"
4041
else
41-
echo "No Docker socket detected, fail"
42-
exit 1
42+
echo "No docker socket detected, falling back"
43+
TARGET_HOST="localhost"
4344
fi
4445
echo "TARGET_HOST=${TARGET_HOST}" >> $GITHUB_ENV
4546
-

0 commit comments

Comments
 (0)