wait for NixOS boot 460 seconds at maximum
continuous-integration/drone/push Build is failing Details

jsonnet
Alexander 2023-12-21 13:19:57 +04:00
parent 30f5d85acd
commit 55cf8bc0a6
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ steps:
environment:
DOMAIN:
from_secret: DOMAIN
TIMEOUT: 100
TIMEOUT: 160
commands:
- 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