mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2024-11-25 13:01:28 +00:00
add sleep 1 before nixos-rebuild API request
This commit is contained in:
parent
ec339bb8d1
commit
6f96b9afdf
23
.drone.yml
23
.drone.yml
|
@ -123,20 +123,23 @@ steps:
|
|||
- enable-service jitsi-meet
|
||||
- enable-service ocserv
|
||||
- enable-service pleroma
|
||||
- sleep 1
|
||||
- nixos-rebuild Rebuild
|
||||
- sleep 70
|
||||
- timer=0; while true; do nix run $TESTS_REPO#query-all-services && break; [ "$timer" -lt "$TIMEOUT_1" ]; echo "$((TIMEOUT_1 - timer)) seconds remain for retries"; sleep 10; ((timer+=10)); done
|
||||
- nix run $TESTS_REPO#nixos-rebuild Rollback
|
||||
- retry $TIMEOUT_1 10 $TESTS_REPO#query-all-services
|
||||
- sleep 1
|
||||
- nixos-rebuild Rollback
|
||||
- sleep 10
|
||||
- timer=0; while true; do nix run $TESTS_REPO#query-minimum-services && break; [ "$timer" -lt "$TIMEOUT_1" ]; echo "$((TIMEOUT_1 - timer)) seconds remain for retries"; sleep 10; ((timer+=10)); done
|
||||
- nix run $TESTS_REPO#enable-service bitwarden
|
||||
- nix run $TESTS_REPO#enable-service gitea
|
||||
- nix run $TESTS_REPO#enable-service jitsi-meet
|
||||
- nix run $TESTS_REPO#enable-service ocserv
|
||||
- nix run $TESTS_REPO#enable-service pleroma
|
||||
- nix run $TESTS_REPO#nixos-rebuild Rebuild
|
||||
- retry $TIMEOUT_1 10 query-minimum-services
|
||||
- enable-service bitwarden
|
||||
- enable-service gitea
|
||||
- enable-service jitsi-meet
|
||||
- enable-service ocserv
|
||||
- enable-service pleroma
|
||||
- sleep 1
|
||||
- nixos-rebuild Rebuild
|
||||
- sleep 60
|
||||
- timer=0; while true; do nix run $TESTS_REPO#query-all-services && break; [ "$timer" -lt "$TIMEOUT_1" ]; echo "$((TIMEOUT_1 - timer)) seconds remain for retries"; sleep 10; ((timer+=10)); done
|
||||
- retry $TIMEOUT_1 10 query-all-services
|
||||
|
||||
- name: sleep after failure
|
||||
environment:
|
||||
|
|
Loading…
Reference in a new issue