Skip to content

Commit

Permalink
refactor: optimize and clean up network configuration code
Browse files Browse the repository at this point in the history
- Remove unused container IPv6 setup and logging steps

Signed-off-by: appleboy <[email protected]>
  • Loading branch information
appleboy committed Jun 6, 2024
1 parent 26fce0e commit b60d3ea
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/ipv6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,8 @@ jobs:
# Extract the container IP from /etc/hosts
CONTAINER_IP=$(grep $(hostname) /etc/hosts | awk '{ print $1 }')
echo "Container IP: $CONTAINER_IP"
CONTAINER_IPV6=
cat /etc/hosts
echo "Container IPv6: $CONTAINER_IPV6"
# Set the container IP as an environment variable
echo "CONTAINER_IP=$CONTAINER_IP" >> $GITHUB_ENV
# Set the container IPv6 as an environment variable
echo "CONTAINER_IPV6=$CONTAINER_IPV6" >> $GITHUB_ENV
- name: Use Container IPv6
run: echo "The container IPv6 is ${{ env.CONTAINER_IPV6 }}"
- name: Use Container IP
run: echo "The container IP is ${{ env.CONTAINER_IP }}"

0 comments on commit b60d3ea

Please sign in to comment.