-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-steps.yml
More file actions
36 lines (31 loc) · 1.27 KB
/
deploy-steps.yml
File metadata and controls
36 lines (31 loc) · 1.27 KB
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
# ============================================================
# Template: deploy-steps.yml
# ============================================================
# Called once per region inside a ${{ each }} loop.
# The Call Stack shows the nesting:
# main pipeline → deploy-steps.yml (per-region)
#
# The Parameters scope shows the specific region and
# environment passed by the caller for this iteration.
# ============================================================
parameters:
- name: environment
type: string
- name: region
type: string
steps:
- script: |
echo "Deploying to ${{ parameters.region }} in ${{ parameters.environment }}"
displayName: Deploy to ${{ parameters.region }}
# Conditional: extra validation for production
- ${{ if eq(parameters.environment, 'production') }}:
- script: |
echo "Running post-deploy health check in ${{ parameters.region }}"
displayName: Health check (${{ parameters.region }})
- ${{ if ne(parameters.environment, 'production') }}:
- script: |
echo "Skipping health check – not production"
displayName: Skip health check
- script: |
echo "Deployment to ${{ parameters.region }} complete"
displayName: Finalize ${{ parameters.region }}