I’m splitting some secrets for things like github, dockerhub, etc into different contexts, but it appears I can only specify one context per job. Am I missing something obvious? Couldn’t find an example with multiples.
Also, under contexts it states they are “public”, which implies there is some way to limit scope on these, but also couldn’t find anything.
The usecase for multiple contexts is simple: share the same env between different workflows.
F.e. one context is describing environment connection details (f.e. SSH creds, or AWS key, or kubeconfig) can be used among different projects in case if environment is used for multiple applications (microservices). Other contexts are used to store env vars specific for app/branch.
I’ve added an idea suggestion for this on CircleCI’s ideas page. I have no clue how feature suggestions are prioritized at Circle, but it seems like voting for ideas from this ideas page has more sway than forum discussions. That’s just a guess, though.