ci: test
This commit is contained in:
@@ -23,12 +23,18 @@ jobs:
|
||||
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
|
||||
- name: Install iproute2
|
||||
run: |
|
||||
if [ -f /etc/debian_version ]; then
|
||||
sudo apt-get update && sudo apt-get install -y iproute2
|
||||
elif [ -f /etc/alpine-release ]; then
|
||||
apk add --no-network iproute2 || apk add iproute2
|
||||
fi
|
||||
|
||||
- name: Get Host IP
|
||||
run: |
|
||||
# Lấy IP của máy chủ từ góc nhìn của container
|
||||
HOST_IP=$(ip route show | awk '/default/ {print $3}')
|
||||
echo "HOST_IP=$HOST_IP" >> $GITHUB_ENV
|
||||
echo "Máy chủ IP là: $HOST_IP"
|
||||
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v5
|
||||
|
||||
Reference in New Issue
Block a user