mirror of
https://github.com/luzifer-docker/arch-repo-builder.git
synced 2024-12-20 17:41:19 +00:00
Add timeout for makepkg
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
c7a21ddca0
commit
2daa9d20f4
1 changed files with 39 additions and 37 deletions
4
run.sh
4
run.sh
|
@ -1,6 +1,8 @@
|
|||
#!/usr/local/bin/dumb-init /bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
: ${TIMEOUT:=0} # allow to restrict runtime of the makepkg build
|
||||
|
||||
MAKEPKG_OPTS=(-cCs --noconfirm --needed)
|
||||
REPOADD_OPTS=()
|
||||
SKIP_VERIFY="${SKIP_VERIFY:-}"
|
||||
|
@ -64,7 +66,7 @@ pacman -Syyu --noconfirm
|
|||
gosu builder getkeys.sh
|
||||
|
||||
# Execute the build itself
|
||||
gosu builder makepkg ${MAKEPKG_OPTS[@]}
|
||||
gosu builder timeout ${TIMEOUT} makepkg ${MAKEPKG_OPTS[@]}
|
||||
|
||||
PACKAGE=($(find . -regextype egrep -regex '^.*\.pkg(|\.tar|\.tar\.xz|\.tar\.zst)$'))
|
||||
|
||||
|
|
Loading…
Reference in a new issue