Skip to content

Commit 9f8fe7b

Browse files
author
Sheyla Trudo
committed
fixup! Clean up
1 parent 11403aa commit 9f8fe7b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,22 +63,22 @@ steps:
6363
architecture: 'x64'
6464

6565
- pwsh: |
66-
$env:VAR_ID = "$env:IMAGE_$env:OS_$env:ARCH"
66+
$VAR_ID = '{0}_{1}_{2}' -f $env:IMAGE, $env:OS, $env:ARCH
6767
68-
$env:BUILD_CONTEXT = (make "$env:MAKE_BUILD_CONTEXT")
69-
Write-Host "##vso[task.setvariable variable=BUILD_CONTEXT_$env:VAR_ID;]$env:BUILD_CONTEXT"
68+
$BUILD_CONTEXT = (make "$env:MAKE_BUILD_CONTEXT")
69+
Write-Host "##vso[task.setvariable variable=BUILD_CONTEXT_$VAR_ID;]$BUILD_CONTEXT"
7070
71-
$env:IMAGE_PLATFORM_TAG = (make "$env:MAKE_IMAGE_TAG")
72-
Write-Host "##vso[task.setvariable variable=IMAGE_PLATFORM_TAG_$env:VAR_ID;]$env:IMAGE_PLATFORM_TAG"
71+
$IMAGE_PLATFORM_TAG = (make "$env:MAKE_IMAGE_TAG")
72+
Write-Host "##vso[task.setvariable variable=IMAGE_PLATFORM_TAG_$env:VAR_ID;]$IMAGE_PLATFORM_TAG"
7373
74-
$env:IMAGE_NAME_AND_TAG = (make "$env:MAKE_IMAGE_NAME_AND_TAG")
75-
Write-Host "##vso[task.setvariable variable=IMAGE_NAME_AND_TAG_$env:VAR_ID;]$env:IMAGE_NAME_AND_TAG"
74+
$IMAGE_NAME_AND_TAG = (make "$env:MAKE_IMAGE_NAME_AND_TAG")
75+
Write-Host "##vso[task.setvariable variable=IMAGE_NAME_AND_TAG_$env:VAR_ID;]$IMAGE_NAME_AND_TAG"
7676
77-
$env:DOCKERFILE_PATH = (make "$env:MAKE_DOCKERFILE_PATH")
78-
Write-Host "##vso[task.setvariable variable=DOCKERFILE_PATH_$env:VAR_ID;]$env:DOCKERFILE_PATH"
77+
$DOCKERFILE_PATH = (make "$env:MAKE_DOCKERFILE_PATH")
78+
Write-Host "##vso[task.setvariable variable=DOCKERFILE_PATH_$env:VAR_ID;]$DOCKERFILE_PATH"
7979
80-
$env:EXTRA_BUILD_ARGS = (make "$env:MAKE_EXTRA_BUILD_ARGS")
81-
Write-Host "##vso[task.setvariable variable=EXTRA_BUILD_ARGS_$env:VAR_ID;]$env:EXTRA_BUILD_ARGS"
80+
$EXTRA_BUILD_ARGS = (make "$env:MAKE_EXTRA_BUILD_ARGS")
81+
Write-Host "##vso[task.setvariable variable=EXTRA_BUILD_ARGS_$env:VAR_ID;]$EXTRA_BUILD_ARGS"
8282
displayName: "Get Image Build Data"
8383
errorActionPreference: stop
8484
env:

0 commit comments

Comments
 (0)