File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
src/PostSharp.Engineering.BuildTools/Docker Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -8,23 +8,15 @@ namespace PostSharp.Engineering.BuildTools.Docker;
88[ PublicAPI ]
99public sealed class AzureArtifactsCredentialProviderComponent : ContainerComponent
1010{
11- public override string Name => "AzureArtifactsCredentialProvider " ;
11+ public override string Name => "Install Azure Artifacts Credential Provider " ;
1212
1313 public override ContainerComponentKind Kind => ContainerComponentKind . AzureArtifactsCredentialProvider ;
1414
1515 public override void WriteDockerfile ( TextWriter writer )
1616 {
1717 writer . WriteLine (
1818 """
19- RUN $credProviderUrl = 'https://github.com/microsoft/artifacts-credprovider/releases/download/v1.1.2/Microsoft.NuGet.CredentialProvider.zip'; `
20- $credProviderZip = 'Microsoft.NuGet.CredentialProvider.zip'; `
21- $pluginsDir = 'C:\ProgramData\NuGet\plugins\netfx\CredentialProvider.Microsoft'; `
22- Invoke-WebRequest -Uri $credProviderUrl -OutFile $credProviderZip; `
23- New-Item -ItemType Directory -Force -Path $pluginsDir | Out-Null; `
24- Expand-Archive -Path $credProviderZip -DestinationPath $pluginsDir -Force; `
25- Move-Item -Path "$pluginsDir\plugins\netfx\CredentialProvider.Microsoft\*" -Destination $pluginsDir -Force; `
26- Remove-Item -Path "$pluginsDir\plugins" -Recurse -Force; `
27- Remove-Item $credProviderZip
19+ RUN "Invoke-Expression (Invoke-RestMethod -Uri 'https://aka.ms/install-artifacts-credprovider.ps1')"
2820
2921 ENV NUGET_CREDENTIALPROVIDER_SESSIONTOKENCACHE_ENABLED=true
3022 """ ) ;
You can’t perform that action at this time.
0 commit comments