test #22
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: container | |
on: push | |
jobs: | |
node-docker: | |
runs-on: ubuntu-latest | |
container: | |
image: termux/termux-docker:x86_64 | |
steps: | |
- name: wait dns | |
run: | | |
echo "Checking DNS readiness..." | |
max_attempts=$((2 * 60 / 5)) | |
attempt=1 | |
while [ $attempt -le $max_attempts ]; do | |
if curl -Is https://termux.dev > /dev/null; then | |
echo "DNS is ready and HTTP request to Termux was successful." | |
break | |
else | |
if [ $attempt -eq $max_attempts ]; then | |
echo "Timeout reached. DNS is still not ready." | |
exit 1 | |
fi | |
attempt=$((attempt + 1)) | |
sleep 5 | |
fi | |
done | |
- name: Log the node version | |
run: | | |
uname -a | |
curl -O -fsSL https://raw.githubusercontent.com/gushmazuko/metasploit_in_termux/feature/github-actions/metasploit.sh | |
bash metasploit.sh |