Retry a second time when a deployment fails once

This commit is contained in:
Jörg Thalheim 2024-07-01 15:49:23 +02:00 committed by mergify[bot]
parent a2338acb12
commit 4142b90e9e

View File

@ -1,4 +1,6 @@
#!/usr/bin/env bash
nix build .#checks.x86_64-linux.test -L
nixos-rebuild switch --flake .#nixos-wiki-nixos-org --target-host root@wiki.nixos.org
if ! nixos-rebuild switch --flake .#nixos-wiki-nixos-org --target-host root@wiki.nixos.org; then
nixos-rebuild switch --flake .#nixos-wiki-nixos-org --target-host root@wiki.nixos.org
fi