@@ -16,9 +16,9 @@ parameters:
1616
1717jobs :
1818- ${{ each job in parameters.jobs }} :
19- - ${{ each image in job.templateContext .images }} :
20- - job : ${{ replace(image, '-', '_') }}_${{ job.templateContext. os }}_${{ job.templateContext .arch }}
21- displayName : Build Image - (${{ image }} ${{ job.templateContext. os }}/${{ job.templateContext .arch }})
19+ - ${{ each image in parameters .images }} :
20+ - job : ${{ replace(image, '-', '_') }}_${{ parameters. os }}_${{ parameters .arch }}
21+ displayName : Build Image - (${{ image }} ${{ parameters. os }}/${{ parameters .arch }})
2222 steps :
2323 - checkout : self
2424
4848 displayName : " Get Image Build Data"
4949 env :
5050 IMAGE : ${{ image }}
51- OS : ${{ job.templateContext .os }}
52- ARCH : ${{ job.templateContext .arch }}
53- PLATFORM : ${{ job.templateContext. os }}/${{ job.templateContext .arch }}
51+ OS : ${{ parameters .os }}
52+ ARCH : ${{ parameters .arch }}
53+ PLATFORM : ${{ parameters. os }}/${{ parameters .arch }}
5454 MAKE_IMAGE_TAG : ${{ image }}-image-tag
5555 MAKE_BUILD_CONTEXT : ${{ image }}-image-build-context
5656 MAKE_IMAGE_NAME_AND_TAG : ${{ image }}-image-name-and-tag
@@ -59,14 +59,14 @@ jobs:
5959
6060 - template : ./container-template.steps.yaml
6161 parameters :
62- imageNameAndTag : $(IMAGE_NAME_AND_TAG_${{ image }}_${{ job.templateContext. os }}_${{ job.templateContext .arch }})
63- dockerfilePath : $(DOCKERFILE_PATH_${{ image }}_${{ job.templateContext. os }}_${{ job.templateContext .arch }})
62+ imageNameAndTag : $(IMAGE_NAME_AND_TAG_${{ image }}_${{ parameters. os }}_${{ parameters .arch }})
63+ dockerfilePath : $(DOCKERFILE_PATH_${{ image }}_${{ parameters. os }}_${{ parameters .arch }})
6464 buildContextPath : $(Build.SourcesDirectory)
65- targetVersion : $(IMAGE_PLATFORM_TAG_${{ image }}_${{ job.templateContext. os }}_${{ job.templateContext .arch }})
66- targetOs : ${{ job.templateContext .os }}
67- targetArch : ${{ job.templateContext .arch }}
68- targetPlatform : " ${{ job.templateContext. os }}/${{ job.templateContext .arch }}"
69- addBuildArgs : $(EXTRA_BUILD_ARGS_${{ image }}_${{ job.templateContext. os }}_${{ job.templateContext .arch }})
65+ targetVersion : $(IMAGE_PLATFORM_TAG_${{ image }}_${{ parameters. os }}_${{ parameters .arch }})
66+ targetOs : ${{ parameters .os }}
67+ targetArch : ${{ parameters .arch }}
68+ targetPlatform : " ${{ parameters. os }}/${{ parameters .arch }}"
69+ addBuildArgs : $(EXTRA_BUILD_ARGS_${{ image }}_${{ parameters. os }}_${{ parameters .arch }})
7070 buildOs : ${{ job.templatContext.buildOs }}
7171 buildArch : ${{ job.templateContext.buildArch }}
7272 buildPlatform : " ${{ job.templatContext.buildOs }}/${{ job.templateContext.buildArch }}"
0 commit comments