Skip to content

Commit 4df69be

Browse files
authored
Update build-image-test.yaml
1 parent a2bc4dd commit 4df69be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ jobs:
7575
run: |
7676
docker context ls
7777
# Colima usually creates the socket at ~/.colima/default/docker.sock
78-
# The `colima env` command can give you the exact DOCKER_HOST value
79-
DOCKER_SOCKET_PATH=$(colima env --shell bash | grep DOCKER_HOST | cut -d'=' -f2 | tr -d '"')
78+
DOCKER_SOCKET_PATH=$(docker context ls | awk '{print $3}' | grep colima)
8079
echo "DOCKER_HOST=$DOCKER_SOCKET_PATH" >> $GITHUB_ENV
81-
docker info # Verify Docker daemon is accessible
80+
docker
8281
docker context ls
82+
echo "DOCKER_HOST=$DOCKER_SOCKET_PATH"
8383
8484
- name: Set up Docker Buildx
8585
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0

0 commit comments

Comments
 (0)