Skip to content

Commit 14858bb

Browse files
dependabot-preview[bot]TravisEz13
authored andcommitted
Bump fedora from 28 to 30 in /release/preview/fedora28/dependabot (#243)
1 parent e74c02e commit 14858bb

File tree

12 files changed

+44
-25
lines changed

12 files changed

+44
-25
lines changed

build.ps1

+26-18
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ End {
199199
$dupeTagIssues = @()
200200

201201
$toBuild = @()
202+
$builtSubImages = @()
202203
foreach ($actualChannel in $Channels) {
203204
if ($PSCmdlet.ParameterSetName -match '.*ByName')
204205
{
@@ -263,25 +264,32 @@ End {
263264
foreach ($tagGroup in $allMeta.ActualTagDataByGroup.Keys)
264265
{
265266
$actualTagData = $allMeta.ActualTagDataByGroup.$tagGroup
266-
Write-Verbose -Message "getting subimage - fromtag: $($tagGroup.Name) - subimage: $($allMeta.Meta.SubImage)"
267267
$SubImagePath = Join-Path -Path $dockerFileName -ChildPath $allMeta.Meta.SubImage
268-
269-
$subImageAllMeta = Get-DockerImageMetaDataWrapper `
270-
-DockerFileName $SubImagePath `
271-
-CI:$CI.IsPresent `
272-
-IncludeKnownIssues:$IncludeKnownIssues.IsPresent `
273-
-ChannelPath $channelPath `
274-
-TagFilter $TagFilter `
275-
-Version $windowsVersion `
276-
-ImageName $ImageName `
277-
-LinuxVersion $linuxVersion `
278-
-TagData $allMeta.TagData `
279-
-BaseImage $actualTagData.ActualTags[0] `
280-
-BaseRepositry $Repository `
281-
-Strict:$CheckForDuplicateTags.IsPresent
282-
283-
284-
$toBuild += $subImageAllMeta
268+
if($builtSubImages -notcontains $SubImagePath)
269+
{
270+
Write-Verbose -Message "getting subimage - fromtag: $($tagGroup.Name) - subimage: $($allMeta.Meta.SubImage)"
271+
$subImageAllMeta = Get-DockerImageMetaDataWrapper `
272+
-DockerFileName $SubImagePath `
273+
-CI:$CI.IsPresent `
274+
-IncludeKnownIssues:$IncludeKnownIssues.IsPresent `
275+
-ChannelPath $channelPath `
276+
-TagFilter $TagFilter `
277+
-Version $windowsVersion `
278+
-ImageName $ImageName `
279+
-LinuxVersion $linuxVersion `
280+
-TagData $allMeta.TagData `
281+
-BaseImage $actualTagData.ActualTags[0] `
282+
-BaseRepositry $Repository `
283+
-Strict:$CheckForDuplicateTags.IsPresent
284+
285+
286+
$toBuild += $subImageAllMeta
287+
$builtSubImages += $SubImagePath
288+
}
289+
else
290+
{
291+
Write-Verbose -Message "already got subimage - fromtag: $($tagGroup.Name) - subimage: $($allMeta.Meta.SubImage)"
292+
}
285293
}
286294
}
287295
}

release/preview/fedora28/dependabot/Dockerfile release/preview/fedora/dependabot/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
# Dummy docker image to trigger dependabot PRs
55

6-
FROM fedora:28
6+
FROM fedora:30

release/preview/fedora28/getLatestTag.ps1 release/preview/fedora/getLatestTag.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
# return objects representing the tags we need to base the fedora image on
55

66
# The versions of fedora we care about
7-
$shortTags = @('28')
7+
$shortTags = @('28','29','30')
88

99
$parent = Join-Path -Path $PSScriptRoot -ChildPath '..'
1010
$repoRoot = Join-Path -path (Join-Path -Path $parent -ChildPath '..') -ChildPath '..'
1111
$modulePath = Join-Path -Path $repoRoot -ChildPath 'tools\getDockerTags'
1212
Import-Module $modulePath
1313

14-
Get-DockerTags -ShortTags $shortTags -Image "fedora" -FullTagFilter '^28$' -OnlyShortTags
14+
Get-DockerTags -ShortTags $shortTags -Image "fedora" -FullTagFilter '^\d{2}$' -OnlyShortTags
File renamed without changes.

release/servicing/opensuse423/docker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# Define arg(s) needed for the From statement
77
ARG fromTag=42.3
8-
ARG imageRepo=opensuse
8+
ARG imageRepo=opensuse/leap
99

1010
FROM ${imageRepo}:${fromTag} AS installer-env
1111

release/servicing/opensuse423/getLatestTag.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ $repoRoot = Join-Path -path (Join-Path -Path $parent -ChildPath '..') -ChildPath
1111
$modulePath = Join-Path -Path $repoRoot -ChildPath 'tools\getDockerTags'
1212
Import-Module $modulePath
1313

14-
Get-DockerTags -ShortTags $shortTags -Image "opensuse" -FullTagFilter '^42.3$' -OnlyShortTags
14+
Get-DockerTags -ShortTags $shortTags -Image "opensuse/leap" -FullTagFilter '^42\.3$' -OnlyShortTags

release/servicing/opensuse423/meta.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@
66
"SkipGssNtlmSspTests": true,
77
"tagTemplates": [
88
"#psversion#-opensuse-#tag#"
9-
]
9+
],
10+
"TestProperties": {
11+
"size": 524
12+
}
1013
}

tools/getDockerTags/getDockerTags.psm1

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function Get-DockerTags
106106

107107
if(!$tags)
108108
{
109-
throw 'no results'
109+
throw 'no results: '+$Image
110110
}
111111

112112
foreach($shortTag in $ShortTags)

vsts-ci.yml

+8
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,19 @@ jobs:
3838
name: centos7
3939
imagename: centos7
4040

41+
- template: .vsts-ci/phase.yml
42+
parameters:
43+
name: fedora
44+
imagename: fedora
45+
stable: false
46+
preview: true
47+
4148
- template: .vsts-ci/phase.yml
4249
parameters:
4350
name: fedora28
4451
imagename: fedora28
4552
stable: true
53+
preview: false
4654

4755
- template: .vsts-ci/phase.yml
4856
parameters:

0 commit comments

Comments
 (0)