Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 1ES pool for secret rotation #13381

Merged
merged 1 commit into from
May 2, 2023
Merged
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
54 changes: 31 additions & 23 deletions azure-pipelines-weekly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,40 @@ schedules:
- main
always: true

variables:
- template: eng/common/templates/variables/pool-providers.yml

name: $(Date:yyyMMdd)$(Rev:rr)
stages:
- stage: SynchronizeSecrets
jobs:
- job: Synchronize
pool:
vmImage: windows-latest
- stage: SynchronizeSecrets
displayName: Synchronize secrets
jobs:
- job: SynchronizeSecrets
displayName: Synchronize secrets
pool:
name: $(DncEngInternalBuildPool)
demands: ImageOverride -equals 1es-windows-2022

steps:
- task: UseDotNet@2
displayName: Install Correct .NET Version
inputs:
useGlobalJson: true
steps:
- task: UseDotNet@2
displayName: Install .NET
inputs:
useGlobalJson: true

- task: UseDotNet@2
displayName: Install .NET 3.1 runtime
inputs:
packageType: runtime
version: 3.1.x
- task: UseDotNet@2
displayName: Install .NET 3.1 runtime
inputs:
packageType: runtime
version: 3.1.x

- script: dotnet tool restore
- script: dotnet tool restore
displayName: Install .NET tools

- task: AzureCLI@2
inputs:
azureSubscription: DotNet Eng Services Secret Manager
scriptType: ps
scriptLocation: inlineScript
inlineScript: |
Get-ChildItem .vault-config/*.yaml |% { dotnet secret-manager synchronize $_}
- task: AzureCLI@2
displayName: Synchronize secrets
inputs:
azureSubscription: DotNet Eng Services Secret Manager
scriptType: ps
scriptLocation: inlineScript
inlineScript: |
Get-ChildItem .vault-config/*.yaml |% { dotnet secret-manager synchronize $_}