Skip to content

Commit 66b3bce

Browse files
authored
Automatically update Aspire Dashboard (#6757)
1 parent f68391b commit 66b3bce

File tree

3 files changed

+54
-11
lines changed

3 files changed

+54
-11
lines changed

eng/pipelines/pipelines/update-dependencies.yml

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@ parameters:
33
- name: official
44
type: boolean
55
default: false
6-
# BAR build channel to read .NET versions from
7-
- name: channel
6+
# BAR channel to read .NET VMR versions from
7+
# Find full list of channels at https://aka.ms/bar
8+
- name: vmrChannel
9+
type: string
10+
default: ""
11+
# BAR channel to read Aspire versions from
12+
- name: aspireChannel
813
type: string
914
default: ""
1015
# .NET image components to update. This should be a list of strings.
@@ -17,6 +22,10 @@ parameters:
1722
- name: updateDotnet
1823
type: boolean
1924
default: true
25+
# Whether or not to try and update the Aspire Dashboard version according to the channel parameter
26+
- name: updateAspire
27+
type: boolean
28+
default: true
2029
# Additional authentication arguments to pass to update-dependencies
2130
- name: gitHubAuthArgs
2231
type: string
@@ -36,19 +45,38 @@ extends:
3645
dependencyName: dotnet
3746
updateSteps:
3847
- task: AzureCLI@2
39-
displayName: Update Dotnet
48+
displayName: Update .NET
4049
inputs:
4150
azureSubscription: "Darc: Maestro Production"
4251
scriptType: "pscore"
4352
scriptLocation: "inlineScript"
4453
inlineScript: >-
4554
dotnet run --project eng/update-dependencies/update-dependencies.csproj --
4655
from-channel
47-
${{ parameters.channel }}
56+
${{ parameters.vmrChannel }}
4857
https://github.com/dotnet/dotnet
4958
--version-source-name 'dotnet/dotnet'
5059
${{ parameters.gitHubAuthArgs }}
5160
61+
- ${{ if parameters.updateAspire }}:
62+
- template: /eng/pipelines/jobs/update-dependency.yml@self
63+
parameters:
64+
dependencyName: aspire
65+
updateSteps:
66+
- task: AzureCLI@2
67+
displayName: Update Aspire
68+
inputs:
69+
azureSubscription: "Darc: Maestro Production"
70+
scriptType: "pscore"
71+
scriptLocation: "inlineScript"
72+
inlineScript: >-
73+
dotnet run --project eng/update-dependencies/update-dependencies.csproj --
74+
from-channel
75+
${{ parameters.aspireChannel }}
76+
https://github.com/dotnet/aspire
77+
--version-source-name 'dotnet/aspire'
78+
${{ parameters.gitHubAuthArgs }}
79+
5280
- ${{ each tool in parameters.tools }}:
5381
- template: /eng/pipelines/jobs/update-dependency.yml@self
5482
parameters:

eng/pipelines/update-dependencies-official.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ parameters:
1717
displayName: Update .NET?
1818
type: boolean
1919
default: true
20+
- name: updateAspire
21+
displayName: Update Aspire Dashboard?
22+
type: boolean
23+
default: true
2024
# This parameter will show up as a multi-select dropdown when queueing the pipeline
2125
- name: tools
2226
type: stringList
@@ -42,9 +46,11 @@ variables:
4246
extends:
4347
template: /eng/pipelines/pipelines/update-dependencies.yml@self
4448
parameters:
45-
channel: $(channel)
46-
tools: ${{ parameters.tools }}
4749
updateDotnet: ${{ parameters.updateDotnet }}
50+
vmrChannel: $(vmrChannel)
51+
updateAspire: ${{ parameters.updateAspire }}
52+
aspireChannel: $(aspireChannel)
53+
tools: ${{ parameters.tools }}
4854
${{ if ne(parameters.skipPullRequest, true) }}:
4955
gitHubAuthArgs: >-
5056
--user $(dotnetDockerBot.userName)

eng/pipelines/update-dependencies-unofficial.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,22 @@ trigger: none
22
pr: none
33

44
parameters:
5-
- name: channel
6-
displayName: BAR build channel to read .NET versions from (see aka.ms/bar)
7-
type: string
8-
default: ""
95
- name: updateDotnet
106
displayName: Update .NET?
117
type: boolean
128
default: true
9+
- name: vmrChannel
10+
displayName: .NET VMR build channel (see aka.ms/bar)
11+
type: string
12+
default: ""
13+
- name: updateAspire
14+
displayName: Update Aspire Dashboard?
15+
type: boolean
16+
default: false
17+
- name: aspireChannel
18+
displayName: Aspire build channel (see aka.ms/bar)
19+
type: string
20+
default: ""
1321
# This parameter will show up as a multi-select dropdown when queueing the pipeline
1422
- name: tools
1523
type: stringList
@@ -34,6 +42,7 @@ variables:
3442
extends:
3543
template: /eng/pipelines/pipelines/update-dependencies.yml@self
3644
parameters:
37-
channel: ${{ parameters.channel }}
45+
vmrChannel: ${{ parameters.vmrChannel }}
46+
aspireChannel: ${{ parameters.aspireChannel }}
3847
updateDotnet: ${{ parameters.updateDotnet }}
3948
tools: ${{ parameters.tools }}

0 commit comments

Comments
 (0)