11 references to Environment
Aspire.Hosting (4)
Publishing\BuildImageSecretValue.cs (1)
28/// <param name="Value">The resolved secret value. For <see cref="BuildImageSecretType.Environment"/> secrets, this is the secret content.
Publishing\DockerContainerRuntime.cs (1)
114if (buildSecret.Value.Type == BuildImageSecretType.Environment && buildSecret.Value.Value is not null)
Publishing\PodmanContainerRuntime.cs (1)
68if (buildSecret.Value.Type == BuildImageSecretType.Environment && buildSecret.Value.Value is not null)
Publishing\ResourceContainerImageManager.cs (1)
446var secretType = buildSecret.Value is FileInfo ? BuildImageSecretType.File : BuildImageSecretType.Environment;
Aspire.Hosting.Tests (7)
Publishing\ResourceContainerImageManagerTests.cs (7)
679Assert.Equal(BuildImageSecretType.Environment, fakeContainerRuntime.CapturedBuildSecrets["SECRET_ASENV"].Type); 833Assert.Equal(BuildImageSecretType.Environment, fakeContainerRuntime.CapturedBuildSecrets["STRING_SECRET"].Type); 837Assert.Equal(BuildImageSecretType.Environment, fakeContainerRuntime.CapturedBuildSecrets["NULL_SECRET"].Type); 885Assert.Equal(BuildImageSecretType.Environment, fakeContainerRuntime.CapturedBuildSecrets["ENV_SECRET"].Type); 897["MY_SECRET"] = new BuildImageSecretValue("secret-value", BuildImageSecretType.Environment) 923["MY_SECRET"] = new BuildImageSecretValue(null, BuildImageSecretType.Environment) 936["ENV_TOKEN"] = new BuildImageSecretValue("token-value", BuildImageSecretType.Environment),