-
Notifications
You must be signed in to change notification settings - Fork 478
/
Copy pathazdo-fabric-cd-release.yml
42 lines (37 loc) · 1.59 KB
/
azdo-fabric-cd-release.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
trigger:
- none
pool:
vmImage: ubuntu-latest
stages:
- stage: deploy_to_test
displayName: 'Deploy to Test'
variables:
- group: fabric-test
jobs:
- job: From_DEV_TO_TEST
steps:
- task: PowerShell@2
displayName: Update Source Workspace from GIT'
inputs:
filePath: "$(System.DefaultWorkingDirectory)/devops/devops_scripts/update-workspace-from-git.ps1"
arguments: '-baseUrl "$(fabricRestApiEndpoint)" -fabricToken $(token) -workspaceName "$(sourceStageWorkspaceName)"'
pwsh: true
- task: PowerShell@2
displayName: 'Fabric CD DEV TO TEST'
inputs:
filePath: "$(System.DefaultWorkingDirectory)/devops/devops_scripts/run-deployment-pipelines.ps1"
arguments: '-baseUrl "$(fabricRestApiEndpoint)" -fabricToken $(token) -pipelineName "$(pipelineName)" -sourceStageName "$(sourceStageName)" -targetStageName "$(targetStageName)" -targetStageWsName "$(workspaceName)"'
pwsh: true
- stage: deploy_to_prod
displayName: 'Deploy to Production'
variables:
- group: fabric-prod
jobs:
- job: From_TEST_TO_PROD
steps:
- task: PowerShell@2
displayName: 'Fabric CD TEST TO PROD'
inputs:
filePath: "$(System.DefaultWorkingDirectory)/devops/devops_scripts/run-deployment-pipelines.ps1"
arguments: '-baseUrl "$(fabricRestApiEndpoint)" -fabricToken $(token) -pipelineName "$(pipelineName)" -sourceStageName "$(sourceStageName)" -targetStageName "$(targetStageName)" -targetStageWsName "$(workspaceName)"'
pwsh: true