зеркало из
1
0
Форкнуть 0

Switch back to using NuGet.org for all packages since 1.1.1 has released

This commit is contained in:
MichaelSimons 2017-03-06 16:55:11 -06:00 коммит произвёл Michael Simons
Родитель d912e99b86
Коммит b3f7734b4d
2 изменённых файлов: 3 добавлений и 8 удалений

Просмотреть файл

@ -1,3 +1,3 @@
FROM {image}
RUN dotnet restore -r debian.8-x64 {optionalRestoreParams}
RUN dotnet restore -r debian.8-x64

Просмотреть файл

@ -87,15 +87,10 @@ Get-ChildItem -Path $repoRoot -Recurse -Filter Dockerfile |
if ($platform -eq "linux") {
$selfContainedImage = "self-contained-build-${buildImage}"
$optionalRestoreParams = ""
if ($sdkTag -like "*1.1-sdk") {
# Temporary workaround until 1.1.1 packages are released on NuGet.org
$optionalRestoreParams = "-s https://dotnet.myget.org/F/dotnet-core/api/v3/index.json -s https://api.nuget.org/v3/index.json"
}
Write-Host "----- Creating publish-image for self-contained app built on $fullSdkTag -----"
Try {
exec { (Get-Content ${testFilesPath}Dockerfile.linux.publish).Replace("{image}", $buildImage).Replace("{optionalRestoreParams}", $optionalRestoreParams) `
exec { (Get-Content ${testFilesPath}Dockerfile.linux.publish).Replace("{image}", $buildImage) `
| docker build $optionalDockerBuildArgs -t $selfContainedImage -
}