From 54112b1c5afa26183693e775c9ad0623cc705398 Mon Sep 17 00:00:00 2001 From: Walt Date: Tue, 11 Jan 2022 18:55:29 -0800 Subject: [PATCH] Run gpg in batch mode (#9730) Do not prompt for any reason, especially not if a repomd.xml.asc already exists when signing repomd.xml. Attempting to prompt (instead of overwriting) results in publish failures like the following: + gpg --detach-sign --armor /rpmrepo/teleport/repodata/repomd.xml gpg: cannot open '/dev/tty': No such device or address Contributes to https://github.com/gravitational/teleport/issues/9726. (cherry picked from commit 0fb71e9bf26a6ee541530dd335527aaecc04a216) --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 96dc4e63f253c..037ef3dd5a820 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4332,7 +4332,7 @@ steps: echo "$GPG_RPM_SIGNING_ARCHIVE" | base64 -d | tar -xzf - -C $GNUPGHOME chown -R root:root $GNUPGHOME # Sign rpm repo metadata (yum clients will automatically look for and verify repodata/repomd.xml.asc) - - gpg --detach-sign --armor /rpmrepo/teleport/repodata/repomd.xml + - gpg --batch --yes --detach-sign --armor /rpmrepo/teleport/repodata/repomd.xml - cat /rpmrepo/teleport/repodata/repomd.xml.asc - rm -rf $GNUPGHOME @@ -4461,6 +4461,6 @@ volumes: name: drone-s3-debrepo-pvc --- kind: signature -hmac: 942d6ab5b8b2ab250f3633359fa77080ddfcb5a807d03cb2f5f68c1e0a2d2b4c +hmac: f29561054dffe09593ca1018f3240f6078ddff950c05672b824c78124a204e21 ...