mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect.git
synced 2024-11-22 03:51:27 +00:00
re-enable all services after rollback
This commit is contained in:
parent
7d15460867
commit
7099e2eada
11
.drone.yml
11
.drone.yml
|
@ -90,7 +90,6 @@ steps:
|
|||
from_secret: USER_PASS
|
||||
TESTS_REPO: git+https://git.selfprivacy.org/alexoundos/selfprivacy-tests.git
|
||||
TIMEOUT_1: 100
|
||||
TIMEOUT_2: 1000
|
||||
|
||||
commands:
|
||||
- dig api.$DOMAIN
|
||||
|
@ -111,7 +110,15 @@ steps:
|
|||
- 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
|
||||
- sleep 10
|
||||
- timer=0; while true; do nix run $TESTS_REPO#query-minimum-services && break; [ "$timer" -lt "$TIMEOUT_2" ]; echo "$((TIMEOUT_2 - timer)) seconds remain for retries"; sleep 10; ((timer+=10)); done
|
||||
- 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
|
||||
- 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
|
||||
#- > #http -v --verify=false --check-status --ignore-stdin GET https://password.$DOMAIN/admin/diagnostics
|
||||
|
||||
- name: sleep-after-failure
|
||||
|
|
Loading…
Reference in a new issue