forked from dotnet/arcade-services
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipeline-weekly.yml
82 lines (73 loc) · 2.25 KB
/
azure-pipeline-weekly.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
trigger: none
schedules:
- cron: 0 12 * * 1
displayName: Weekly Monday build
branches:
include:
- main
always: true
name: $(Date:yyyMMdd)$(Rev:rr)
resources:
pipelines:
- pipeline: arcadeServicesInternalCI
source: arcade-services-internal-ci
branch: main
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 build
workingDirectory: src/Microsoft.DncEng.SecretManager
- task: AzureCLI@2
inputs:
azureSubscription: DotNet Eng Services Secret Manager
scriptType: ps
scriptLocation: inlineScript
inlineScript: |
Get-ChildItem .vault-config/*.yaml |% { dotnet run -p src/Microsoft.DncEng.SecretManager -- synchronize $_}
- stage: Build
dependsOn:
jobs:
- job: Build
pool:
vmImage: windows-2019
steps:
- download: arcadeServicesInternalCI
artifact: MaestroApplication
- task: PublishBuildArtifacts@1
inputs:
PathToPublish: $(Build.SourcesDirectory)\Scripts\Validation\
ArtifactName: ValidationScripts
ArtifactType: Container
displayName: Publish Validation Scripts
- task: PublishBuildArtifacts@1
inputs:
PathToPublish: $(Pipeline.Workspace)\arcadeServicesInternalCI\MaestroApplication\projectartifacts\PublishProfiles\
ArtifactName: ServiceFabricPublishProfiles
ArtifactType: Container
displayName: Publish Service Fabric Publish Profiles
- publish: $(Build.SourcesDirectory)\eng
artifact: ReleaseUtilities
displayName: Publish Release Utilities
- template: eng/pre-deploy-tests.yaml
parameters:
AzureSubscription: NetHelixStaging
PublishProfile: Int
stageName: Pre_Deploy_tests_Int
- template: eng/pre-deploy-tests.yaml
parameters:
AzureSubscription: NetHelix
PublishProfile: Prod
stageName: Pre_Deploy_tests_Prod