App and Job Repositories
Nomatron is in early access. Some advanced workflows may not be covered in the public docs.
App And Job Repositories
Nomatron uses Git repositories for planning, rendering, webhook matching, and deployment operations.
Every app has a required repository URL. App jobs can inherit that repository or set a job-level repository override.
Repository Inheritance
When an app job does not set repo_url, it inherits the app repository.
app repo_url: https://github.com/acme/api
job repo_url: not set
effective repository: https://github.com/acme/apiThis is the usual model when one repository contains the app and all of its Nomad job files.
Repository Overrides
Set a job repository override when a job belongs to the same app workflow but its jobspec lives in another repository.
app repo_url: https://github.com/acme/api
job repo_url: https://github.com/acme/payments-worker
effective repository: https://github.com/acme/payments-workerThe API and CLI expose the explicit job override as repo_url. They expose the repository Nomatron will actually use as effective_repo_url.
Clearing Overrides
Clear a job repository override to return the job to app repository inheritance.
nomatron app-jobs update \
--organization acme \
--app api \
--job payments-worker \
--clear-repo-urlWith the API, set the job repo_url field to null or an empty string in the update request. In the web UI, disable the job repository override. In Terraform, remove repo_url from the nomatron_job resource.
After the override is cleared, effective_repo_url matches the app repository URL.
Where The Effective Repository Appears
You can inspect the effective repository in:
- app job API responses;
nomatron app-jobs listandnomatron app-jobs read;- the web UI job list and job overview; and
- Terraform provider state as
effective_repo_url.
GitHub webhook matching, template rendering, plans, imports, and deployment operations use the effective repository.