File tree Expand file tree Collapse file tree 2 files changed +27
-12
lines changed Expand file tree Collapse file tree 2 files changed +27
-12
lines changed Original file line number Diff line number Diff line change @@ -77,12 +77,12 @@ jobs:
7777 - template : ./container-template.steps.yaml
7878 parameters :
7979 imageNameAndTag : $(IMAGE_NAME_AND_TAG_${{ image }}_${{ parameters.os }}_${{ parameters.arch }})
80- dockerfile : $(DOCKERFILE_PATH_${{ image }}_${{ parameters.os }}_${{ parameters.arch }})
81- path : $(Build.SourcesDirectory)
80+ dockerfilePath : $(DOCKERFILE_PATH_${{ image }}_${{ parameters.os }}_${{ parameters.arch }})
81+ buildContextPath : $(Build.SourcesDirectory)
8282 targetVersion : $(IMAGE_PLATFORM_TAG_${{ image }}_${{ parameters.os }}_${{ parameters.arch }})
8383 targetOs : ${{ parameters.os }}
8484 targetArch : ${{ parameters.arch }}
85- targetPlatform : " ${{ parameters.targetOs }}/${{ parameters.targetArch }}"
85+ targetPlatform : " ${{ parameters.os }}/${{ parameters.arch }}"
8686 addBuildArgs :
8787 ${{ if eq(variables.Agent.OSArchitecture, 'ARM') }} :
8888 buildArch : arm64
Original file line number Diff line number Diff line change 11parameters :
2- - name : imageName
2+ - name : imageNameAndTag
33 type : string
4- - name : name
4+
5+ - name : dockerfilePath
56 type : string
6- values :
7- - azure-ipam
8- - cni
9- - cns
10- - ipv6-hp-bpf
11- - npm
127
138- name : platformVersionTag
149 type : string
1510 default : " "
1611
12+ - name : buildContextPath
13+ type : string
14+ default : " "
15+
1716- name : targetPlatform
1817 type : string
1918 default : " "
2019
20+ - name : targetOs
21+ type : string
22+ values :
23+ - linux
24+ - windows
25+
26+ - name : targetArch
27+ type : string
28+ values :
29+ - amd64
30+ - arm64
31+
2132- name : buildOs
2233 type : string
2334 values :
@@ -30,6 +41,10 @@ parameters:
3041 - amd64
3142 - arm64
3243
44+ - name : buildPlatform
45+ type : string
46+ default : " "
47+
3348- name : addBuildArgs
3449 type : object
3550 default : " "
4863 inputs :
4964 image : ${{ parameters.imageNameAndTag }}
5065 dockerfile : ${{ parameters.dockerfilePath }}
51- path : ${{ parameters.targetPath }} $(Build.SourcesDirectory)
66+ path : ${{ parameters.buildContextPath }}
5267 buildArguments : |
5368 --build-arg PLATFORM="${{ parameters.buildPlatform }}" \
5469 --build-arg ARCH="${{ parameters.buildArch }}" \
You can’t perform that action at this time.
0 commit comments