File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,18 @@ parameters:
2626
2727
2828steps :
29+ - bash : |
30+ docker build buildx ls
31+ # rm ~/.docker/config.json
32+
2933 - task : 1ES.BuildContainerImage@1
3034 retryCountOnTaskFailure : 3
3135 inputs :
3236 image : ${{ parameters.imageNameAndTag }}
3337 dockerfile : ${{ parameters.dockerfilePath }}
3438 path : ${{ parameters.buildContextPath }}
3539 buildArguments : |
40+ --debug
3641 --build-arg DEBUG="$(System.Debug)"
3742 --build-arg PLATFORM="${{ parameters.targetPlatform }}"
3843 --build-arg ARCH="${{ parameters.targetArch }}"
@@ -41,10 +46,9 @@ steps:
4146 --target "${{ parameters.targetOs }}"
4247 ${{ parameters.addBuildArgs }}
4348 enableNetwork : true
44- enableCache : false
45- useBuildKit : true
49+ enableCache : true
50+ useBuildKit : ${{ eq(parameters.targetOs, 'linux') }}
4651 enablePull : false
47- # {{ eq(parameters.targetOs, 'windows') }}
4852
4953- task : 1ES.PushContainerImage@1
5054 condition : ${{ eq(parameters.targetOs, 'windows') }}
You can’t perform that action at this time.
0 commit comments