Skip to content

Commit

Permalink
Add an approval stage to the PCS pipeline (#4230)
Browse files Browse the repository at this point in the history
  • Loading branch information
premun authored Dec 9, 2024
1 parent e3e55fd commit ea9d11d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion azure-pipelines-product-construction-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,26 @@ stages:
devBranchSuffix: $(devBranchSuffix)
dockerImageName: $(dockerRegistryUrl)/$(containerName)

- ${{ if notin(variables['Build.Reason'], 'PullRequest') }}:
- ${{ if and(notin(variables['Build.Reason'], 'PullRequest'), eq(variables['System.TeamProject'], 'internal')) }}:
- stage: Approval
dependsOn:
- Build
jobs:
- deployment: approval
displayName: Deployment approval
${{ if startsWith(variables['Build.SourceBranch'], 'refs/heads/production') }}:
environment: Production
${{ else }}:
environment: Staging
pool: server
strategy:
runOnce:
deploy: {}

- stage: DeployPCS
dependsOn:
- Build
- Approval
displayName: Deploy Product Construction Service

jobs:
Expand Down

0 comments on commit ea9d11d

Please sign in to comment.