diff --git a/Dockerfile b/Dockerfile index a6ec0cd..3b553b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ RUN set -ex \ /usr/local/bin/dumb-init \ /usr/local/bin/gosu -VOLUME ["/src", "/repo"] +VOLUME ["/src", "/repo", "/config"] WORKDIR /src COPY run.sh /usr/local/bin/ diff --git a/run.sh b/run.sh index b7e1eab..6400d5d 100755 --- a/run.sh +++ b/run.sh @@ -2,6 +2,7 @@ set -euxo pipefail SRC=${1:-} +MAKEPKG_OPTS=(-cCs --noconfirm --needed) # Override WORKDIR cd /src @@ -19,11 +20,16 @@ if [ ! -e PKGBUILD ]; then cd /src/git fi +[ -e /config/signing.asc ] && { + gosu builder gpg --import