From 96786c6755cfc05160a139b6eac821d866353f9f Mon Sep 17 00:00:00 2001 From: Jakub Stejskal Date: Fri, 19 Jun 2026 11:24:32 +0200 Subject: [PATCH 1/2] Use slightly different cmd to get node IP in kind script Signed-off-by: Jakub Stejskal --- .github/actions/dependencies/setup-kind/setup-kind.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/dependencies/setup-kind/setup-kind.sh b/.github/actions/dependencies/setup-kind/setup-kind.sh index 4789e61..be333f9 100755 --- a/.github/actions/dependencies/setup-kind/setup-kind.sh +++ b/.github/actions/dependencies/setup-kind/setup-kind.sh @@ -376,7 +376,7 @@ network_name="kind" configure_network "${network_name}" if [[ "$IP_FAMILY" = "ipv4" || "$IP_FAMILY" = "dual" ]]; then - hostname=$(hostname --ip-address | grep -oE '\b([0-9]{1,3}\.){3}[0-9]{1,3}\b' | awk '$1 != "127.0.0.1" { print $1 }' | head -1) + hostname=$(hostname --all-ip-addresses | awk '{ print $1 }') # update insecure registries updateContainerRuntimeConfiguration "${hostname}:${reg_port}" From b2f37bad3a8ad96f7f6dbc5731dba5d18502917b Mon Sep 17 00:00:00 2001 From: Jakub Stejskal Date: Fri, 19 Jun 2026 11:28:39 +0200 Subject: [PATCH 2/2] Change command also inside action Signed-off-by: Jakub Stejskal --- .github/actions/dependencies/setup-kind/action.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/actions/dependencies/setup-kind/action.yml b/.github/actions/dependencies/setup-kind/action.yml index 530595f..8ea7591 100644 --- a/.github/actions/dependencies/setup-kind/action.yml +++ b/.github/actions/dependencies/setup-kind/action.yml @@ -84,10 +84,16 @@ runs: - name: Set DOCKER_REGISTRY shell: bash run: | - echo "DOCKER_REGISTRY=$(hostname --ip-address | grep -oE '\b([0-9]{1,3}\.){3}[0-9]{1,3}\b' | awk '$1 != "127.0.0.1" { print $1 }' | head -1):5001" >> $GITHUB_ENV + echo "DOCKER_REGISTRY=$(hostname --all-ip-addresses | awk '{ print $1 }'):5001" >> $GITHUB_ENV # This is used for building connect image used withing STs for runs where already existing images are used (releases) - name: Set CONNECT_BUILD_REGISTRY shell: bash run: | - echo "CONNECT_BUILD_REGISTRY=$(hostname --ip-address | grep -oE '\b([0-9]{1,3}\.){3}[0-9]{1,3}\b' | awk '$1 != "127.0.0.1" { print $1 }' | head -1):5001" >> $GITHUB_ENV + echo "CONNECT_BUILD_REGISTRY=$(hostname --all-ip-addresses | awk '{ print $1 }'):5001" >> $GITHUB_ENV + + - name: Print registry values + shell: bash + run: | + echo "DOCKER_REGISTRY=${DOCKER_REGISTRY}" + echo "CONNECT_BUILD_REGISTRY=${CONNECT_BUILD_REGISTRY}" \ No newline at end of file