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 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}"