Skip to content

Commit 525825c

Browse files
authored
Update build-image-test.yaml
1 parent f7b31a7 commit 525825c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build-image-test.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ jobs:
7070
if: matrix.os-type == 'darwin'
7171
uses: douglascamata/[email protected]
7272

73+
- name: Set DOCKER_HOST to point to Colima's socket
74+
if: matrix.os-type == 'darwin'
75+
run: |
76+
# Colima usually creates the socket at ~/.colima/default/docker.sock
77+
# The `colima env` command can give you the exact DOCKER_HOST value
78+
DOCKER_SOCKET_PATH=$(colima env --shell bash | grep DOCKER_HOST | cut -d'=' -f2 | tr -d '"')
79+
echo "DOCKER_HOST=$DOCKER_SOCKET_PATH" >> $GITHUB_ENV
80+
docker info # Verify Docker daemon is accessible
81+
7382
- name: Set up Docker Buildx
7483
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
7584
if: steps.changed-files-specific.outputs.any_changed == 'true'

0 commit comments

Comments
 (0)