Update: Clearing the build cache and deploying gets rid of the “unchanged” message and the logs seem to indicate that the public key is successfully imported. But the entire ~/.gnupg directory is missing if I shell in after the deployment is complete.
Is something clearing the user render’s home directory after the deployment? Separately, are there some docs on what the build cache is or what exactly it is caching?
Build & runtime containers are different. Only files within /opt/render/project/ are taken from build to runtime. Maybe try setting your PGP Home Directory within that path with the GNUPGHOME env var, or --homedir option.