Skip to content

Commit

Permalink
Run gpg in batch mode
Browse files Browse the repository at this point in the history
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 #9726.
  • Loading branch information
wadells committed Jan 11, 2022
1 parent bae67b3 commit 0fb71e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5037,7 +5037,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

Expand Down Expand Up @@ -5166,6 +5166,6 @@ volumes:
name: drone-s3-debrepo-pvc
---
kind: signature
hmac: 1473746cd33150de6ce4e6be53478ad6961414d1e34987d9eff4b3e17bcfe5a2
hmac: 7e267bb32adf5588554c4dd04e25df09d450bcb3e4a5e8766a6df5e8a97fde4a

...

0 comments on commit 0fb71e9

Please sign in to comment.