-
Notifications
You must be signed in to change notification settings - Fork 353
/
azure-pipelines-daily.yaml
42 lines (36 loc) · 1.1 KB
/
azure-pipelines-daily.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
trigger: none
schedules:
- cron: 0 12 * * *
displayName: Daily build
branches:
include:
- main
always: true
name: $(Date:yyyMMdd)$(Rev:rr)
stages:
- stage: SynchronizeSecrets
jobs:
- job: Synchronize
displayName: Synchronize secrets
pool:
name: NetCore1ESPool-Internal-NoMSI
demands: ImageOverride -equals 1es-windows-2022
steps:
- script: restore.cmd -ci
displayName: Run restore.cmd
- task: UseDotNet@2
displayName: Install .NET 6 runtime
inputs:
packageType: runtime
version: 6.x
installationPath: $(Build.SourcesDirectory)/.dotnet
- script: $(Build.SourcesDirectory)/.dotnet/dotnet.exe tool restore
displayName: Restore dotnet tools
- task: AzureCLI@2
displayName: Run secret-manager synchronize
inputs:
azureSubscription: DotNet Eng Services Secret Manager
scriptType: pscore
scriptLocation: inlineScript
inlineScript: |
Get-ChildItem .vault-config/*.yaml |% { dotnet secret-manager synchronize $_}