JetBrains / teamcity-docker-agent

TeamCity agent docker image sources
https://hub.docker.com/r/jetbrains/teamcity-agent/
Apache License 2.0
77 stars 64 forks source link

How to import GnuPG keys? #69

Closed Schmazda closed 4 years ago

Schmazda commented 4 years ago

I wanted to auto-release my artifacts to Maven Central and for that I need to sign these artifacts. I already created and uploaded a GnuPG key for that but I don't know how to use this key in TeamCity.

I run both TeamCity Server and Agent in Docker containers on Ubuntu 18.04.

kir commented 4 years ago

Hi,

I suppose you should pass extra volume with your GPG directory when starting build agent via docker: -v /home/builduser/.gnupg:/home/buildagent/.gnupg

Hope this helps,

Schmazda commented 4 years ago

It worked, thank you! Now I have to find out how to fix gpg: no default secret key: No secret key xD