Skip to main content

image_registry_from_cascade

Function image_registry_from_cascade 

Source
pub fn image_registry_from_cascade() -> String
Available on crate feature deployment only.
Expand description

Read the publish-target image registry from the config cascade.

Reads deployment.image_registry from the YAML cascade. Falls back to DEFAULT_IMAGE_REGISTRY when not set, when config isn’t loaded, or when the config feature is disabled.

§Example

use hyperi_rustlib::deployment::{DeploymentContract, image_registry_from_cascade};
let mut contract = dummy();
contract.image_registry = image_registry_from_cascade();