Skip to content

Commit de4f6b6

Browse files
committed
Fixed port checking
1 parent bbf5e61 commit de4f6b6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/endtoend_test_containerized.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ jobs:
3737
3838
- name: Start cloud-provider-kind
3939
run: |
40-
cloud-provider-kind &
40+
cloud-provider-kind > cloud_provider_output.log 2>&1 &
4141
echo "Started cloud-provider-kind"
42-
sleep 10
42+
sleep 40
4343
4444
- name: Find port mapping for service
4545
run: |
46-
echo "Checking Docker containers for port mappings..."
47-
docker ps
48-
49-
HOST_PORT=$(docker ps --format '{{.Ports}}' | grep -o '[0-9]\+->5000/tcp' | cut -d':' -f2 | cut -d'-' -f1 || echo "")
50-
51-
echo "SERVICE_URL=http://localhost:$HOST_PORT" >> $GITHUB_ENV
46+
echo "Checking Docker containers for port mappings..."
47+
docker ps
48+
49+
HOST_PORT=$(docker ps --format '{{.Ports}}' | grep -o '[0-9]\+->5000/tcp' | cut -d':' -f2 | cut -d'-' -f1 || echo "")
50+
51+
echo "SERVICE_URL=http://localhost:$HOST_PORT" >> $GITHUB_ENV
5252
5353
- name: Send GET request and check response
5454
run: |

0 commit comments

Comments
 (0)