This commit is contained in:
@@ -1,16 +1,8 @@
|
||||
name: net-recon
|
||||
name: test
|
||||
on: [push]
|
||||
jobs:
|
||||
net:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: network
|
||||
run: |
|
||||
echo "=== IP ==="; hostname -I
|
||||
echo "=== resolv ==="; cat /etc/resolv.conf
|
||||
echo "=== hosts ==="; cat /etc/hosts
|
||||
echo "=== route ==="; ip route
|
||||
echo "=== scan 172.19.0.0/24 ==="; for i in $(seq 1 254); do ping -c1 -W1 172.19.0.$i >/dev/null 2>&1 && echo "ALIVE: 172.19.0.$i"; done
|
||||
echo "=== scan 172.18.0.0/24 ==="; for i in $(seq 1 254); do ping -c1 -W1 172.18.0.$i >/dev/null 2>&1 && echo "ALIVE: 172.18.0.$i"; done
|
||||
echo "=== scan 172.17.0.0/24 ==="; for i in $(seq 1 254); do ping -c1 -W1 172.17.0.$i >/dev/null 2>&1 && echo "ALIVE: 172.17.0.$i"; done
|
||||
echo "=== docker names ==="; for name in db mongo redis gitea n8n api backend nginx traefik prometheus alertmanager grafana; do host $name 2>&1 | head -1; done
|
||||
- name: hello
|
||||
run: echo "HELLO FROM RUNNER"
|
||||
|
||||
Reference in New Issue
Block a user