@@ -23,7 +23,7 @@ parameters:
2323
2424steps :
2525
26- - ${{ if eq(parameters.targetOs, 'linux') }} :
26+ # - ${{ if eq(parameters.targetOs, 'linux') }}:
2727 - bash : |
2828 set -e
2929
@@ -55,42 +55,42 @@ steps:
5555 MAKE_DOCKERFILE_PATH: ${{ parameters.image }}-dockerfile-path
5656 MAKE_EXTRA_BUILD_ARGS: ${{ parameters.image }}-docker-build-args
5757
58- - ${{ elseif eq(parameters.targetOs, 'windows') }} :
59- - task : UsePythonVersion@0
60- inputs :
61- versionSpec : ' 3.x' # string. Required. Version spec. Default: 3.x.
62- addToPath : true # boolean. Add to PATH. Default: true.
63- architecture : ' x64'
64-
65- - pwsh : |
66- $VAR_ID = '{0}_{1}_{2}' -f $env:IMAGE, $env:OS, $env:ARCH
67-
68- $BUILD_CONTEXT = (make "$env:MAKE_BUILD_CONTEXT")
69- Write-Host "##vso[task.setvariable variable=BUILD_CONTEXT_$VAR_ID;]$BUILD_CONTEXT"
70-
71- $IMAGE_PLATFORM_TAG = (make "$env:MAKE_IMAGE_TAG")
72- Write-Host "##vso[task.setvariable variable=IMAGE_PLATFORM_TAG_$VAR_ID;]$IMAGE_PLATFORM_TAG"
73-
74- $IMAGE_NAME_AND_TAG = (make "$env:MAKE_IMAGE_NAME_AND_TAG")
75- Write-Host "##vso[task.setvariable variable=IMAGE_NAME_AND_TAG_$VAR_ID;]$IMAGE_NAME_AND_TAG"
76-
77- $DOCKERFILE_PATH = (make "$env:MAKE_DOCKERFILE_PATH")
78- Write-Host "##vso[task.setvariable variable=DOCKERFILE_PATH_$VAR_ID;]$DOCKERFILE_PATH"
79-
80- $EXTRA_BUILD_ARGS = (make "$env:MAKE_EXTRA_BUILD_ARGS")
81- Write-Host "##vso[task.setvariable variable=EXTRA_BUILD_ARGS_$VAR_ID;]$EXTRA_BUILD_ARGS"
82- displayName: "Get Image Build Data"
83- errorActionPreference: stop
84- env:
85- CONTAINER_BUILDER: docker
86- CONTAINER_RUNTIME: docker
87- CONTAINER_TRANSPORT: docker
88- IMAGE: ${{ parameters.image }}
89- OS: ${{ parameters.targetOs }}
90- ARCH: ${{ parameters.targetArch }}
91- PLATFORM: ${{ parameters.targetOs }}/${{ parameters.targetArch }}
92- MAKE_IMAGE_TAG: ${{ parameters.image }}-image-tag
93- MAKE_BUILD_CONTEXT: ${{ parameters.image }}-image-build-context
94- MAKE_IMAGE_NAME_AND_TAG: ${{ parameters.image }}-image-name-and-tag
95- MAKE_DOCKERFILE_PATH: ${{ parameters.image }}-dockerfile-path
96- MAKE_EXTRA_BUILD_ARGS: ${{ parameters.image }}-docker-build-args
58+ # - ${{ elseif eq(parameters.targetOs, 'windows') }}:
59+ # - task: UsePythonVersion@0
60+ # inputs:
61+ # versionSpec: '3.x' # string. Required. Version spec. Default: 3.x.
62+ # addToPath: true # boolean. Add to PATH. Default: true.
63+ # architecture: 'x64'
64+ #
65+ # - pwsh: |
66+ # $VAR_ID = '{0}_{1}_{2}' -f $env:IMAGE, $env:OS, $env:ARCH
67+ #
68+ # $BUILD_CONTEXT = (make "$env:MAKE_BUILD_CONTEXT")
69+ # Write-Host "##vso[task.setvariable variable=BUILD_CONTEXT_$VAR_ID;]$BUILD_CONTEXT"
70+ #
71+ # $IMAGE_PLATFORM_TAG = (make "$env:MAKE_IMAGE_TAG")
72+ # Write-Host "##vso[task.setvariable variable=IMAGE_PLATFORM_TAG_$VAR_ID;]$IMAGE_PLATFORM_TAG"
73+ #
74+ # $IMAGE_NAME_AND_TAG = (make "$env:MAKE_IMAGE_NAME_AND_TAG")
75+ # Write-Host "##vso[task.setvariable variable=IMAGE_NAME_AND_TAG_$VAR_ID;]$IMAGE_NAME_AND_TAG"
76+ #
77+ # $DOCKERFILE_PATH = (make "$env:MAKE_DOCKERFILE_PATH")
78+ # Write-Host "##vso[task.setvariable variable=DOCKERFILE_PATH_$VAR_ID;]$DOCKERFILE_PATH"
79+ #
80+ # $EXTRA_BUILD_ARGS = (make "$env:MAKE_EXTRA_BUILD_ARGS")
81+ # Write-Host "##vso[task.setvariable variable=EXTRA_BUILD_ARGS_$VAR_ID;]$EXTRA_BUILD_ARGS"
82+ # displayName: "Get Image Build Data"
83+ # errorActionPreference: stop
84+ # env:
85+ # CONTAINER_BUILDER: docker
86+ # CONTAINER_RUNTIME: docker
87+ # CONTAINER_TRANSPORT: docker
88+ # IMAGE: ${{ parameters.image }}
89+ # OS: ${{ parameters.targetOs }}
90+ # ARCH: ${{ parameters.targetArch }}
91+ # PLATFORM: ${{ parameters.targetOs }}/${{ parameters.targetArch }}
92+ # MAKE_IMAGE_TAG: ${{ parameters.image }}-image-tag
93+ # MAKE_BUILD_CONTEXT: ${{ parameters.image }}-image-build-context
94+ # MAKE_IMAGE_NAME_AND_TAG: ${{ parameters.image }}-image-name-and-tag
95+ # MAKE_DOCKERFILE_PATH: ${{ parameters.image }}-dockerfile-path
96+ # MAKE_EXTRA_BUILD_ARGS: ${{ parameters.image }}-docker-build-args
0 commit comments