Skip to content
Open
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
49 changes: 26 additions & 23 deletions eng/pipelines/pipelines/update-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@ parameters:
- name: channel
type: string
default: ""
# .NET image components to update
# .NET image components to update. This should be a list of strings.
# 'stringList' is not a supported type for parameters in templates, so we need use 'object' instead.
# https://learn.microsoft.com/azure/devops/pipelines/process/runtime-parameters#parameter-data-types
- name: tools
type: object
default:
- "chisel"
- "rocks-toolbox"
- "syft"
- "mingit"
default: []
# Whether or not to try and update .NET versions according to the channel parameter
- name: updateDotnet
type: boolean
default: true
# Additional authentication arguments to pass to update-dependencies
- name: gitHubAuthArgs
type: string
Expand All @@ -28,23 +30,24 @@ extends:
displayName: Update dependencies

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

- ${{ each tool in parameters.tools }}:
- template: /eng/pipelines/jobs/update-dependency.yml@self
Expand Down
22 changes: 22 additions & 0 deletions eng/pipelines/update-dependencies-official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,26 @@ parameters:
displayName: Skip Pull Request
type: boolean
default: false
- name: updateDotnet
displayName: Update .NET?
type: boolean
default: true
# This parameter will show up as a multi-select dropdown when queueing the pipeline
- name: tools
type: stringList
displayName: Tools to update
values:
- "chisel"
- "rocks-toolbox"
- "syft"
- "mingit"
# Keep the default values in sync with allowed values so that the scheduled
# pipeline runs always try to update all tools
default:
- "chisel"
- "rocks-toolbox"
- "syft"
- "mingit"

variables:
- template: /eng/common/templates/variables/dotnet/common.yml@self
Expand All @@ -23,6 +43,8 @@ extends:
template: /eng/pipelines/pipelines/update-dependencies.yml@self
parameters:
channel: $(channel)
tools: ${{ parameters.tools }}
updateDotnet: ${{ parameters.updateDotnet }}
${{ if ne(parameters.skipPullRequest, true) }}:
gitHubAuthArgs: >-
--user $(dotnetDockerBot.userName)
Expand Down
22 changes: 22 additions & 0 deletions eng/pipelines/update-dependencies-unofficial.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,26 @@ parameters:
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
# This parameter will show up as a multi-select dropdown when queueing the pipeline
- name: tools
type: stringList
displayName: Tools to update
values:
- "chisel"
- "rocks-toolbox"
- "syft"
- "mingit"
# Keep the default values in sync with allowed values so that the scheduled
# pipeline runs always try to update all tools
default:
- "chisel"
- "rocks-toolbox"
- "syft"
- "mingit"

variables:
- template: /eng/common/templates/variables/dotnet/common.yml@self
Expand All @@ -15,3 +35,5 @@ extends:
template: /eng/pipelines/pipelines/update-dependencies.yml@self
parameters:
channel: ${{ parameters.channel }}
updateDotnet: ${{ parameters.updateDotnet }}
tools: ${{ parameters.tools }}