make waiting time configurable

This commit is contained in:
Tobias Powalowski 2024-07-26 07:16:58 +02:00
parent e4b038e07a
commit 98fbada0f0
2 changed files with 3 additions and 1 deletions

View file

@ -2,6 +2,8 @@
# created by Tobias Powalowski <tpowa@archlinux.org>
# set your managed architectures
_SERVER_ARCH="x86_64 aarch64 riscv64"
# set your time before next architecture is built (value in seconds)
_SERVER_WAIT="3600"
# set program updates that trigger new server release
_TRIGGER="archboot archboot-arm archboot-riscv archlinux-keyring
archlinuxarm-keyring bcachefs-tools btrfs-progs coreutils

View file

@ -31,7 +31,7 @@ for i in ${_SERVER_ARCH}; do
# if trigger successful, release new image to server
if rg -qw "${k}" "${i}"/var/log/pacman.log; then
archboot-"${i}"-server-release.sh || echo "Error: ${i} release!" >> error.log
sleep 3600
sleep "${_SERVER_WAIT}"
break
fi
done