Skip to content

Commit

Permalink
Add secret management build part (#7713)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexperovich authored Aug 4, 2021
1 parent cff9cf2 commit 8cb3251
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"microsoft.dnceng.secretmanager": {
"version": "1.1.0-beta.21380.2",
"commands": [
"secret-manager"
]
}
}
}
36 changes: 36 additions & 0 deletions azure-pipelines-weekly.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
schedules:
- cron: 0 12 * * 1
displayName: Weekly Monday build
branches:
include:
- main
always: true

name: $(Date:yyyMMdd)$(Rev:rr)
stages:
- stage: SynchronizeSecrets
jobs:
- job: Synchronize
pool:
vmImage: windows-2019
steps:
- task: UseDotNet@2
displayName: Install Correct .NET Version
inputs:
useGlobalJson: true

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

- script: dotnet tool restore

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

0 comments on commit 8cb3251

Please sign in to comment.