I'm trying to sign yum repo metadata using GPG, as part of a Jenkins job. This is proving more difficult than I first imagined, but I'm sure lots of people must have done this already.
I've worked out that I can do it on the terminal using :-
gpg --detach-sign --armor --local-user "Our Team" repomd.xml
However this pops up a curses style window which asks for the key, and I'd like to automate this as part of the Jenkins job. I used expect for signing the actual RPMs, and that worked well but I don't think I can do that with this gpg / curses method. Is there a way to tell gpg to just accept input from the keyboard and not pop up a text entry box? (I've been reading the man page, but it's really massive and I'm getting stuck).
Will keep trying, but hopefully someone has already solved this?