Skip to content

Commit 9b8b653

Browse files
author
Sheyla Trudo
committed
fixup! Separate Build Changes
1 parent 33871d9 commit 9b8b653

File tree

2 files changed

+27
-12
lines changed

2 files changed

+27
-12
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

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

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,34 @@
11
parameters:
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: ""
@@ -48,7 +63,7 @@ steps:
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 }}" \

0 commit comments

Comments
 (0)