Skip to content

gpg command line issue

Describe the bug

gpg --batch --dry-run --yes --import "${SEMREL_GPG_SIGNKEY} gives an error

Expected behavior

gpg: Total number processed: 1
gpg:       secret keys read: 1

Actual behavior

$ configure_commit_signing
[INFO] Setting commit signing up.
gpg: keyblock resource '/root/.gnupg/pubring.kbx': No such file or directory
gpg: Total number processed: 1
gpg:       secret keys read: 1
[ERROR] Could not import GPG key.

Logs and/or screenshots

(Join any relevant logs and/or screenshot. Please use code blocks (```) to format console output, logs, and code.)

Context & Configuration

The issue was reproduced using:

  • Version of the template: 3.5.2
  • GitLab server(s): DIOD GitLab
  • GitLab runner(s): 16.3.0
  • Image registry.hub.docker.com/library/node:latest

Working fine with image registry.hub.docker.com/library/node:18.18.1