Skip to content

Commit

Permalink
CI: fallback without socket
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Latten committed Dec 19, 2021
1 parent af0982b commit c82ee7b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ jobs:
v=$(mount | grep "/run/docker.sock")
TARGET_HOST=
if [ -n "$v" ]; then
if [[ -n "$v" ]]; then
echo "Injected docker socket detected"
TARGET_HOST="host.docker.internal"
elif [ -S /var/run/docker.sock ]; then
elif [[ -S /var/run/docker.sock ]]; then
echo "Local docker socket detected"
TARGET_HOST="localhost"
else
echo "No Docker socket detected, fail"
exit 1
echo "No docker socket detected, falling back"
TARGET_HOST="localhost"
fi
echo "TARGET_HOST=${TARGET_HOST}" >> $GITHUB_ENV
-
Expand Down

0 comments on commit c82ee7b

Please sign in to comment.