Skip to content
Snippets Groups Projects
Verified Commit c8b0d5e3 authored by Levente Polyak's avatar Levente Polyak :rocket:
Browse files

chore(test): replace usage of gnupg with sequoia

parent e031ec1e
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,8 @@ RUN pacman -Syu --noconfirm --needed \
binutils \
git \
parallel \
coreutils
coreutils \
sequoia-sq
RUN pacman-key --init && \
echo '%wheel ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/wheel && \
......@@ -60,18 +61,10 @@ RUN sed 's/libexec/lib/g' -i /usr/lib/bats/* && \
USER tester
RUN echo -e "\
Key-Type: RSA\n\
Key-Length: 1024\n\
Key-Usage: sign\n\
Name-Real: Bob Tester\n\
Name-Email: tester@localhost\n\
Expire-Date: 0\n\
%no-protection\n\
%commit\n"\
| gpg --quiet --batch --no-tty --no-permission-warning --gen-key && \
gpg --export | sudo pacman-key -a - && \
RUN sq key generate --userid "Bob Tester <tester@localhost>" --output /build/private.key && \
sq export --keyring /build/private.key | sudo pacman-key -a - && \
sudo pacman-key --lsign-key tester@localhost && \
gpg --import /build/private.key && \
gpgconf --kill gpg-agent && \
gpgconf --kill keyboxd && \
mkdir -p \
......
......@@ -131,8 +131,7 @@ __buildPackage() {
done
for p in ${pkgfiles[@]}; do
# Manually sign packages as "makepkg --sign" is buggy
gpg -v --detach-sign --no-armor --use-agent ${p}
sq sign --detached --binary --signer-file /build/private.key --output "${p}.sig" "${p}"
if [[ -n ${BUILDDIR} ]]; then
cp -Lv ${p}{,.sig} ${cache}/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment