From my build server, I want to automate logging into Docker Hub, to push an image to an organization there. Is there a service account or single-use application credentials that can be used on the build server for this purpose? I want to avoid storing my personal username & password on the build server if possible.
I can only speak for Jenkins
right now, but I believe TC
or GitLab
(or whatever
;-)) are able to provide credentials. You can save your credentials encrypted and call them in your build pipeline. That would avoid putting sensitive data in clear text into your pipeline.
You can also check this for more info (for Jenkins):
https://jenkins.io/doc/book/using/using-credentials/
I know how to store the credentials. I am asking for credentials not specific to a user for server use only. I’m not sure if such a thing exists.
1 Like