fix(ci): add diagnostics to signing step
All checks were successful
poll-upstream / check (push) Successful in 1s

Dump rpmmacros, gpg keys, and file permissions before signing to
debug the silent failure.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-26 18:14:44 +03:00
parent 93d442d270
commit ecf38bb53f

View File

@@ -7,13 +7,18 @@ RPM_DIR="${1%/}"
REMOTE_DIR="/var/www/rpm/fedora/${FEDORA_VERSION}/x86_64" REMOTE_DIR="/var/www/rpm/fedora/${FEDORA_VERSION}/x86_64"
# sign each rpm with the imported gpg key # sign each rpm with the imported gpg key
echo "rpmmacros:"
cat ~/.rpmmacros
echo "gpg keys:"
gpg --list-secret-keys --keyid-format long
ls -la "${RPM_DIR}"/*.rpm
for rpm in "${RPM_DIR}"/*.rpm; do for rpm in "${RPM_DIR}"/*.rpm; do
echo "signing ${rpm}..." echo "signing ${rpm}..."
if ! rpm --addsign "${rpm}" > /tmp/rpmsign.log 2>&1; then rpm --addsign "${rpm}" 2>&1 | tee /tmp/rpmsign.log || {
echo "failed to sign ${rpm}:" >&2 echo "failed to sign ${rpm}:" >&2
cat /tmp/rpmsign.log >&2 cat /tmp/rpmsign.log >&2
exit 1 exit 1
fi }
done done
install --directory --mode 700 ~/.ssh install --directory --mode 700 ~/.ssh