re-enable all services after rollback

This commit is contained in:
Alexander Tomokhov 2023-12-18 16:56:21 +04:00
parent 7d15460867
commit 7099e2eada

View file

@ -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