All configuration fields in config.yml support environment-specific mappings. Instead of a single value, you can provide a dictionary where keys are environment names (e.g., dev, test, prod).
Example mapping:
core:
workspace_id:
dev: "dev-id"
prod: "prod-id"
Behavior for missing environments:
- Required fields (
core.workspace_id, core.workspace, core.repository_directory): If the target environment is missing from the mapping, a validation error is raised. - Important optional fields (
core.item_types_in_scope, core.parameter): If the environment is missing, a warning is logged and the setting is skipped. - Other optional fields (e.g.,
publish.skip, publish.exclude_regex): If the environment is missing, a debug message is logged (if debug logging is enabled) and the setting is skipped.
core:
workspace_id:
dev: "dev-workspace-id"
test: "test-workspace-id"
prod: "prod-workspace-id"
publish:
skip:
dev: true
# test and prod default to false