withBuildSecret

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

Signature

methodwithBuildSecretbuilder
Adds a secret build argument when the container is built from a Dockerfile.
withBuildSecret(
name: string,
value: ParameterResource): ContainerResource
namestringThe name of the secret build argument.
valueParameterResourceThe resource builder for a parameter resource.
ContainerResource

Applies to

This method applies to the following types: