fix(.circleci): rpmsign needs enter for empty passphrases

Co-authored-by: Lorenzo Fontana <lo@linux.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
This commit is contained in:
Leonardo Di Donato
2020-02-28 13:16:21 +01:00
committed by poiana
parent d694c58e04
commit b3117ebcab

View File

@@ -156,8 +156,12 @@ jobs:
echo "%_signature gpg" > ~/.rpmmacros
echo "%_gpg_name Falcosecurity Package Signing" >> ~/.rpmmacros
cd /build/release/
echo "#!/usr/bin/expect -f" > sign
echo "spawn rpmsign --addsign *.rpm" >> sign
echo "send -- '\n'" >> sign
chmod +x sign
echo $GPG_KEY | base64 -d | gpg --import
rpm --addsign *.rpm
./sign
test "$(rpm -qpi *.rpm | awk '/Signature/' | grep -i none | wc -l)" -eq 0
- persist_to_workspace:
root: /