RPM-instructions to update outdated keys incorrect for Gitlab-Runner
Summary
RPM-instructions at https://docs.gitlab.com/omnibus/update/package_signatures#update-keys-after-expiry-extension to update outdated keys do not work for Gitlab-runner, because Gitlab-runner-repository has a different repository-directory.
Steps to reproduce
for pubring in /var/cache/dnf/gitlab_gitlab-?e-*/pubring
do
gpg --homedir $pubring --delete-key F6403F6544A38863DAA0B6E03F01618A51312F3F
done
Actual behavior
Error-message: file or directory not found
(if only Gitlab-runner is installed, otherwise it will only get the Gitlab-directories)
Expected behavior
Outdated keys should be deleted.
Possible fixes
Gitlab-runner-repository has a different directory, therefore /var/cache/dnf/*gitlab*/pubring
should be used:
for pubring in /var/cache/dnf/*gitlab*/pubring
do
gpg --homedir $pubring --delete-key F6403F6544A38863DAA0B6E03F01618A51312F3F
done