diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 0191ca5..3eff75a 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -20,7 +20,13 @@ jobs: - name: Setup SSH Key run: | set -x - ip add + + if command -v apk >/dev/null; then apk add --no-network iproute2 netcat-openbsd || apk add iproute2 netcat-openbsd; + elif command -v apt-get >/dev/null; then apt-get update && apt-get install -y iproute2 netcat-openbsd; fi + + # Kiểm tra IP của Runner + ip addr show || ifconfig + mkdir -p ~/.ssh chmod 700 ~/.ssh echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519