Skip to content

Commit 2d3dcb1

Browse files
author
Sheyla Trudo
committed
fixup! Clean up
1 parent 30bba20 commit 2d3dcb1

File tree

3 files changed

+46
-46
lines changed

3 files changed

+46
-46
lines changed

.pipelines/containers/build-variables-template.steps.yaml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ parameters:
2323

2424
steps:
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

.pipelines/containers/containerize.jobs.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ jobs:
3030
buildPlatform: ${{ parameters.buildOs }}/${{ parameters.buildArch }}
3131
targetPlatform: ${{ parameters.targetOs }}/${{ parameters.targetArch }}
3232

33-
${{ if eq(parameters.targetOs, 'windows') }}:
34-
pool:
35-
name: $(BUILD_POOL_NAME_DEFAULT_WINDOWS)
36-
os: windows
37-
image: acn-runner-vmss-image-windows-1es-v2.0
33+
# ${{ if eq(parameters.targetOs, 'windows') }}:
34+
# pool:
35+
# name: $(BUILD_POOL_NAME_DEFAULT_WINDOWS)
36+
# os: windows
37+
# image: acn-runner-vmss-image-windows-1es-v2.0
3838

3939
steps:
4040
- checkout: self

.pipelines/containers/containerize.steps.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ steps:
4343
enableNetwork: true
4444
enablePull: false
4545
enableCache: true
46-
useBuildKit: ${{ eq(parameters.targetOs, 'linux') }}
46+
useBuildKit: true
4747

4848
- task: 1ES.PushContainerImage@1
4949
condition: ${{ eq(parameters.targetOs, 'windows') }}

0 commit comments

Comments
 (0)