Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/actions/dependencies/setup-kind/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
2 changes: 1 addition & 1 deletion .github/actions/dependencies/setup-kind/setup-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
Loading