Skip to content
Docs Try Aspire
Docs Try

withBuildSecret

Method
📦 Aspire.Hosting v13.4.0
interface ContainerResource {
// ... omitted for brevity
withBuildSecret(
name: string,
value: ParameterResource): ContainerResource;
}

Signature

method withBuildSecret builder
Adds a secret build argument when the container is built from a Dockerfile.
withBuildSecret(
name: string,
value: ParameterResource): ContainerResource
name string
value ParameterResource
ContainerResource

Applies to

This method applies to the following types: