Skip to content

Commit e833ff4

Browse files
author
Sheyla Trudo
committed
fixup! Separate Build Changes
1 parent 54b968b commit e833ff4

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

.pipelines/containers/container-template.jobs.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ parameters:
1616

1717
jobs:
1818
- ${{ each job in parameters.jobs }}:
19-
- ${{ each image in parameters.images }}:
20-
- job: ${{ replace(image, '-', '_') }}_${{ parameters.os }}_${{ parameters.arch }}
21-
displayName: Build Image - (${{ image }} ${{ parameters.os }}/${{ parameters.arch }})
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 }})
2222
steps:
2323
- checkout: self
2424

@@ -48,9 +48,9 @@ jobs:
4848
displayName: "Get Image Build Data"
4949
env:
5050
IMAGE: ${{ image }}
51-
OS: ${{ parameters.os }}
52-
ARCH: ${{ parameters.arch }}
53-
PLATFORM: ${{ parameters.os }}/${{ parameters.arch }}
51+
OS: ${{ job.templateContext.os }}
52+
ARCH: ${{ job.templateContext.arch }}
53+
PLATFORM: ${{ job.templateContext.os }}/${{ job.templateContext.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 }}_${{ parameters.os }}_${{ parameters.arch }})
63-
dockerfilePath: $(DOCKERFILE_PATH_${{ image }}_${{ parameters.os }}_${{ parameters.arch }})
62+
imageNameAndTag: $(IMAGE_NAME_AND_TAG_${{ image }}_${{ job.templateContext.os }}_${{ job.templateContext.arch }})
63+
dockerfilePath: $(DOCKERFILE_PATH_${{ image }}_${{ job.templateContext.os }}_${{ job.templateContext.arch }})
6464
buildContextPath: $(Build.SourcesDirectory)
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 }})
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 }})
7070
buildOs: ${{ job.templatContext.buildOs }}
7171
buildArch: ${{ job.templateContext.buildArch }}
7272
buildPlatform: "${{ job.templatContext.buildOs }}/${{ job.templateContext.buildArch }}"

.pipelines/run-pipeline.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ stages:
8282
parameters:
8383
jobs:
8484
- template: containers/container-template.jobs.yaml
85-
parameters:
85+
templateContext:
8686
arch: amd64
8787
os: linux
8888
images:
@@ -92,7 +92,7 @@ stages:
9292
- ipv6-hp-bpf
9393
- npm
9494
- template: containers/container-template.jobs.yaml
95-
parameters:
95+
templateContext:
9696
arch: arm64
9797
os: linux
9898
images:
@@ -102,7 +102,7 @@ stages:
102102
- ipv6-hp-bpf
103103
- npm
104104
- template: containers/container-template.jobs.yaml
105-
parameters:
105+
templateContext:
106106
arch: amd64
107107
os: windows
108108
images:

0 commit comments

Comments
 (0)