[Ci]: Fix the docker slave azp template issue (#10453)
Why I did it [Ci]: Fix the docker slave azp template issue
This commit is contained in:
parent
bfe5835650
commit
3391969d2e
@ -40,7 +40,7 @@ jobs:
|
|||||||
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
|
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
|
||||||
- template: template-clean-sonic-slave.yml
|
- template: template-clean-sonic-slave.yml
|
||||||
- ${{ else }}:
|
- ${{ else }}:
|
||||||
- template: .azure-pipelines/template-variables.yml@buildimage
|
- template: '/.azure-pipelines/template-clean-sonic-slave.yml@buildimage'
|
||||||
- checkout: self
|
- checkout: self
|
||||||
clean: true
|
clean: true
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
@ -103,7 +103,8 @@ jobs:
|
|||||||
command: push
|
command: push
|
||||||
tags: |
|
tags: |
|
||||||
$(VARIABLE_SLAVE_BASE_TAG)
|
$(VARIABLE_SLAVE_BASE_TAG)
|
||||||
latest
|
${{ if eq(variables['Build.SourceBranchName'], 'master') }}:
|
||||||
|
latest
|
||||||
- ${{ if ne(parameters.arch, 'amd64') }}:
|
- ${{ if ne(parameters.arch, 'amd64') }}:
|
||||||
- task: Docker@2
|
- task: Docker@2
|
||||||
condition: ne(variables['Build.Reason'], 'PullRequest')
|
condition: ne(variables['Build.Reason'], 'PullRequest')
|
||||||
|
@ -67,7 +67,7 @@ stages:
|
|||||||
arch: ${{ arch }}
|
arch: ${{ arch }}
|
||||||
dist: ${{ dist }}
|
dist: ${{ dist }}
|
||||||
- ${{ else }}:
|
- ${{ else }}:
|
||||||
- template: .azure-pipelines/docker-sonic-slave-template.yml@buildimage
|
- template: '/.azure-pipelines/docker-sonic-slave-template.yml@buildimage'
|
||||||
parameters:
|
parameters:
|
||||||
pool: sonicbld
|
pool: sonicbld
|
||||||
arch: ${{ arch }}
|
arch: ${{ arch }}
|
||||||
|
Reference in New Issue
Block a user