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

Stop producing Nano Server Version suffixed tags. (#455)

* Stop producing Nano Server Version suffixed tags.

Script to get supported tags.

* Get git repository name.

* Address PR feedback.

* Address PR feedback #2.
This commit is contained in:
Ravi Eda 2017-10-10 10:50:46 -05:00 коммит произвёл GitHub
Родитель 98fba84c17
Коммит 52692cb038
2 изменённых файлов: 30 добавлений и 36 удалений

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

@ -72,9 +72,6 @@
},
"1.0-runtime-nanoserver": {
"isUndocumented": true
},
"1.0-runtime-nanoserver-$(nanoServerVersion)": {
"isUndocumented": true
}
}
}
@ -112,20 +109,11 @@
"1.1-runtime-nanoserver": {
"isUndocumented": true
},
"1.1-runtime-nanoserver-$(nanoServerVersion)": {
"isUndocumented": true
},
"1-runtime-nanoserver": {
"isUndocumented": true
},
"1-runtime-nanoserver-$(nanoServerVersion)": {
"isUndocumented": true
},
"runtime-nanoserver": {
"isUndocumented": true
},
"runtime-nanoserver-$(nanoServerVersion)": {
"isUndocumented": true
}
}
}
@ -160,26 +148,14 @@
"1.1-sdk-nanoserver": {
"isUndocumented": true
},
"1.1-sdk-nanoserver-$(nanoServerVersion)": {
"isUndocumented": true
},
"1-sdk-nanoserver": {
"isUndocumented": true
},
"1-sdk-nanoserver-$(nanoServerVersion)": {
"isUndocumented": true
},
"sdk-nanoserver": {
"isUndocumented": true
},
"sdk-nanoserver-$(nanoServerVersion)": {
"isUndocumented": true
},
"nanoserver": {
"isUndocumented": true
},
"nanoserver-$(nanoServerVersion)": {
"isUndocumented": true
}
}
}
@ -260,14 +236,8 @@
"2.0-runtime-nanoserver": {
"isUndocumented": true
},
"2.0-runtime-nanoserver-$(nanoServerVersion)": {
"isUndocumented": true
},
"2-runtime-nanoserver": {
"isUndocumented": true
},
"2-runtime-nanoserver-$(nanoServerVersion)": {
"isUndocumented": true
}
}
}
@ -301,14 +271,8 @@
"2.0-sdk-nanoserver": {
"isUndocumented": true
},
"2.0-sdk-nanoserver-$(nanoServerVersion)": {
"isUndocumented": true
},
"2-sdk-nanoserver": {
"isUndocumented": true
},
"2-sdk-nanoserver-$(nanoServerVersion)": {
"isUndocumented": true
}
}
}

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

@ -0,0 +1,30 @@
param(
[string]$Branch='master',
[string]$ImageBuilderImageName='microsoft/dotnet-buildtools-prereqs:image-builder-jessie-20171005132855',
[string]$RepoName
)
$ErrorActionPreference = 'Stop'
$repoRoot = Split-Path -Path "$PSScriptRoot" -Parent
if ([String]::IsNullOrWhiteSpace($RepoName))
{
$remoteUrl = $null
if ([Uri]::TryCreate(((git config --get remote.origin.url) | Out-String), [UriKind]::Absolute, [ref]$remoteUrl))
{
$RepoName = [System.IO.Path]::GetFileNameWithoutExtension($remoteUrl.ToString())
}
if ([String]::IsNullOrWhiteSpace($RepoName))
{
Write-Error 'Could not automatically determine repository name. Add -RepoName <REPO> to override.'
}
}
& docker pull $ImageBuilderImageName
& docker run --rm `
-v /var/run/docker.sock:/var/run/docker.sock `
-v "${repoRoot}:/repo" `
-w /repo `
$ImageBuilderImageName `
generateTagsReadme "https://github.com/dotnet/${RepoName}/blob/${Branch}"