mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2024-11-29 06:31:28 +00:00
wait for NixOS boot 460 seconds at maximum
This commit is contained in:
parent
30f5d85acd
commit
55cf8bc0a6
|
@ -78,7 +78,7 @@ steps:
|
||||||
environment:
|
environment:
|
||||||
DOMAIN:
|
DOMAIN:
|
||||||
from_secret: DOMAIN
|
from_secret: DOMAIN
|
||||||
TIMEOUT: 100
|
TIMEOUT: 160
|
||||||
commands:
|
commands:
|
||||||
- sleep 300
|
- sleep 300
|
||||||
- t0="$(date '+%s')"; until nix shell --inputs-from git+https://git.selfprivacy.org/alexoundos/selfprivacy-tests.git nixpkgs#netcat -c nc -zv -w1 "$DOMAIN" 443; do sleep 10; cur_date="$(date '+%s')"; remaining=$((t0 + TIMEOUT - cur_date)); [ "$remaining" -gt 0 ]; echo "$remaining seconds remain before teardown"; done
|
- t0="$(date '+%s')"; until nix shell --inputs-from git+https://git.selfprivacy.org/alexoundos/selfprivacy-tests.git nixpkgs#netcat -c nc -zv -w1 "$DOMAIN" 443; do sleep 10; cur_date="$(date '+%s')"; remaining=$((t0 + TIMEOUT - cur_date)); [ "$remaining" -gt 0 ]; echo "$remaining seconds remain before teardown"; done
|
||||||
|
|
Loading…
Reference in a new issue