Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 32 additions & 4 deletions eng/pipelines/pipelines/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@ parameters:
- name: official
type: boolean
default: false
# BAR build channel to read .NET versions from
- name: channel
# BAR channel to read .NET VMR versions from
# Find full list of channels at https://aka.ms/bar
- name: vmrChannel
type: string
default: ""
# BAR channel to read Aspire versions from
- name: aspireChannel
type: string
default: ""
# .NET image components to update. This should be a list of strings.
Expand All @@ -17,6 +22,10 @@ parameters:
- name: updateDotnet
type: boolean
default: true
# Whether or not to try and update the Aspire Dashboard version according to the channel parameter
- name: updateAspire
type: boolean
default: true
# Additional authentication arguments to pass to update-dependencies
- name: gitHubAuthArgs
type: string
Expand All @@ -36,19 +45,38 @@ extends:
dependencyName: dotnet
updateSteps:
- task: AzureCLI@2
displayName: Update Dotnet
displayName: Update .NET
inputs:
azureSubscription: "Darc: Maestro Production"
scriptType: "pscore"
scriptLocation: "inlineScript"
inlineScript: >-
dotnet run --project eng/update-dependencies/update-dependencies.csproj --
from-channel
${{ parameters.channel }}
${{ parameters.vmrChannel }}
https://github.com/dotnet/dotnet
--version-source-name 'dotnet/dotnet'
${{ parameters.gitHubAuthArgs }}

- ${{ if parameters.updateAspire }}:
- template: /eng/pipelines/jobs/update-dependency.yml@self
parameters:
dependencyName: aspire
updateSteps:
- task: AzureCLI@2
displayName: Update Aspire
inputs:
azureSubscription: "Darc: Maestro Production"
scriptType: "pscore"
scriptLocation: "inlineScript"
inlineScript: >-
dotnet run --project eng/update-dependencies/update-dependencies.csproj --
from-channel
${{ parameters.aspireChannel }}
https://github.com/dotnet/aspire
--version-source-name 'dotnet/aspire'
${{ parameters.gitHubAuthArgs }}

- ${{ each tool in parameters.tools }}:
- template: /eng/pipelines/jobs/update-dependency.yml@self
parameters:
Expand Down
10 changes: 8 additions & 2 deletions eng/pipelines/update-dependencies-official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ parameters:
displayName: Update .NET?
type: boolean
default: true
- name: updateAspire
displayName: Update Aspire Dashboard?
type: boolean
default: true
# This parameter will show up as a multi-select dropdown when queueing the pipeline
- name: tools
type: stringList
Expand All @@ -42,9 +46,11 @@ variables:
extends:
template: /eng/pipelines/pipelines/update-dependencies.yml@self
parameters:
channel: $(channel)
tools: ${{ parameters.tools }}
updateDotnet: ${{ parameters.updateDotnet }}
vmrChannel: $(vmrChannel)
updateAspire: ${{ parameters.updateAspire }}
aspireChannel: $(aspireChannel)
tools: ${{ parameters.tools }}
${{ if ne(parameters.skipPullRequest, true) }}:
gitHubAuthArgs: >-
--user $(dotnetDockerBot.userName)
Expand Down
19 changes: 14 additions & 5 deletions eng/pipelines/update-dependencies-unofficial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,22 @@ trigger: none
pr: none

parameters:
- name: channel
displayName: BAR build channel to read .NET versions from (see aka.ms/bar)
type: string
default: ""
- name: updateDotnet
displayName: Update .NET?
type: boolean
default: true
- name: vmrChannel
displayName: .NET VMR build channel (see aka.ms/bar)
type: string
default: ""
- name: updateAspire
displayName: Update Aspire Dashboard?
type: boolean
default: false
- name: aspireChannel
displayName: Aspire build channel (see aka.ms/bar)
type: string
default: ""
# This parameter will show up as a multi-select dropdown when queueing the pipeline
- name: tools
type: stringList
Expand All @@ -34,6 +42,7 @@ variables:
extends:
template: /eng/pipelines/pipelines/update-dependencies.yml@self
parameters:
channel: ${{ parameters.channel }}
vmrChannel: ${{ parameters.vmrChannel }}
aspireChannel: ${{ parameters.aspireChannel }}
updateDotnet: ${{ parameters.updateDotnet }}
tools: ${{ parameters.tools }}