From 26fce0eee70cf0a5f29b25a3f11c29541583f744 Mon Sep 17 00:00:00 2001 From: appleboy Date: Thu, 6 Jun 2024 22:05:02 +0800 Subject: [PATCH] update Signed-off-by: appleboy --- .github/workflows/ipv6.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ipv6.yaml b/.github/workflows/ipv6.yaml index 1ffa273..0f91234 100644 --- a/.github/workflows/ipv6.yaml +++ b/.github/workflows/ipv6.yaml @@ -17,7 +17,7 @@ jobs: # Extract the container IP from /etc/hosts CONTAINER_IP=$(grep $(hostname) /etc/hosts | awk '{ print $1 }') echo "Container IP: $CONTAINER_IP" - CONTAINER_IPV6=$(grep $(hostname) /etc/hosts | grep -o '([a-fA-F0-9:]+:+)+[a-fA-F0-9]+') + CONTAINER_IPV6= cat /etc/hosts echo "Container IPv6: $CONTAINER_IPV6" # Set the container IP as an environment variable