This repository has been archived by the owner on Sep 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline-release.yml
59 lines (56 loc) · 1.53 KB
/
pipeline-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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
trigger:
- none
pool:
vmImage: ubuntu-latest
parameters:
- name: CountyId
type: string
default: ''
- name: CountyName
type: string
default: ''
- name: FarmId
type: string
default: ''
- name: Prefix
type: string
default: ''
- name: ImageLabel
type: string
default: ''
- name: Test
type: object
default:
- 001|1|CountyA
- 002|1|CountyB
- 003|2|CountyC
steps:
- script: |
echo "Inside pipeline-release.yml"
echo "County Id: ${{parameters.CountyId}}"
echo "County Name: ${{parameters.CountyName}}"
echo "Farm Id: ${{parameters.FarmId}}"
echo "Prefix: ${{parameters.Prefix}}"
echo "Image Label: ${{parameters.ImageLabel}}"
displayName: 'Display Parameters Received in Release Pipeline'
- template: /pipeline-template-bicep.yml
parameters:
prefix: ${{parameters.Prefix}}
farmId: ${{parameters.FarmId}}
countyId: ${{parameters.CountyId}}
countyName: ${{parameters.CountyName}}
- template: /pipeline-template-deploy.yml
parameters:
prefix: ${{parameters.Prefix}}
farmId: ${{parameters.FarmId}}
countyId: ${{parameters.CountyId}}
countyName: ${{parameters.CountyName}}
imageLabel: ${{parameters.ImageLabel}}
- ${{ each site in parameters.Test }}:
- script: |
IFS='|'
read -a siteInfo <<< "${{site}}"
echo "CountyId: ${siteInfo[0]}"
echo "CountyName : ${siteInfo[2]}"
echo "FarmId : ${siteInfo[1]}"
displayName: 'SITE: ${{ site }}'