depot / cli

🖥️ Depot CLI, build your Docker images in the cloud
https://depot.dev
MIT License
115 stars 5 forks source link

[Question]: Configure Global project ID #268

Closed rjshrjndrn closed 13 minutes ago

rjshrjndrn commented 3 months ago

Is there any way to have global project id, say in the ~/.config/depot/depot.yaml, so that every git project doesn't have to have depot.json in .gitignore?

jacobwgillespie commented 3 months ago

Hey! So the Depot CLI will actually search for a depot.json file in any parent directory when trying to resolve the project ID - are your git projects in a common directory? If they're all underneath your home directory for instance, a ~/depot.json would apply to all of them

rjshrjndrn commented 2 months ago

Good to know that. But no, my projects doesn't have a common parent directory. But depot already have Api token stored in ~/. config/depot.yaml.cant we consider that as the global config file? And for project based config, per do rectory depot.json or yaml will take precedence?