forked from gushmazuko/metasploit_in_termux
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
30 lines (29 loc) · 865 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
stages:
- test
test_job:
stage: test
image: termux/termux-docker:x86_64
before_script:
- export TERM=xterm
- |
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
- apt update -y
script:
- bash <(curl -fsSL https://gitlab.com/gushmazuko/metasploit_in_termux/-/raw/${CI_COMMIT_REF_NAME}/metasploit.sh)
- msfconsole -v
when: manual