tests: run tests with a specified server ip

This commit is contained in:
Jose Diaz-Gonzalez
2024-03-12 06:30:21 -04:00
parent 92139a0cd3
commit a90c441095
2 changed files with 12 additions and 9 deletions

View File

@@ -7,6 +7,7 @@ DOKKU_DOMAIN=${DOKKU_DOMAIN:="dokku.me"}
echo "=====> set hostname"
hostname
internal_ip="$(ifconfig eth0 | grep 'inet ' | awk '{print $2}')"
echo "CI_SERVER_IP=${internal_ip}" >>"$GITHUB_ENV"
sudo hostname "$DOKKU_DOMAIN"
echo "$DOKKU_DOMAIN" | sudo tee /etc/hostname
hostname