All checks were successful
infra/dch-selinux/pipeline/head This commit looks good
* Use `matrix` to generate pipelines for multiple Fedora versions * Sign RPM packages using the Jenkins GPG key * Publish RPM files to *dch* repository on *files.pyrocufflink.blue* instead of Gitea (the latter cannot handle multiple releases of the same package)
13 lines
329 B
Bash
13 lines
329 B
Bash
#!/bin/sh
|
|
|
|
gpg2 --pinentry-mode loopback --passphrase-fd 0 \
|
|
--import "${RPM_GPG_PRIVATE_KEY}" \
|
|
< "${RPM_GPG_KEY_PASSPHRASE}"
|
|
|
|
rpmsign --addsign \
|
|
-D '_gpg_name jenkins@pyrocufflink.net' \
|
|
-D '_gpg_sign_cmd_extra_args --pinentry-mode loopback --passphrase-fd 3' \
|
|
*.rpm \
|
|
3< "${RPM_GPG_KEY_PASSPHRASE}"
|
|
|