Allow to skip GPG verification for broken-ish packages

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-02-05 14:25:37 +01:00
parent dee03ae4f0
commit d39a2ccb02
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 6 additions and 0 deletions

View file

@ -1,6 +1,8 @@
#!/bin/bash
set -eo pipefail
[[ ${SKIP_VERIFY:-} == true ]] && exit 0
[ -f "PKGBUILD" ] || {
echo "No PKGBUILD file found"
exit 1

4
run.sh
View file

@ -21,6 +21,10 @@ if [ ! -e PKGBUILD ]; then
cd /src/git
fi
[[ ${SKIP_VERIFY:-} == true ]] && {
MAKEPKG_OPTS+=(--skippgpcheck)
}
[ -e /config/signing.asc ] && {
gosu builder gpg --import </config/signing.asc
MAKEPKG_OPTS+=(--sign)