[ci] Fix docker-sonic-slave-template issue for resources. (#10414)
Why I did it Fix bug for wrong resources position.
This commit is contained in:
parent
13353dffe8
commit
a9a37c8ba1
@ -3,6 +3,13 @@
|
|||||||
# Add steps that build, run tests, deploy, and more:
|
# Add steps that build, run tests, deploy, and more:
|
||||||
# https://aka.ms/yaml
|
# https://aka.ms/yaml
|
||||||
# Build and push sonic-slave-[buster|jessie|stretch] images for amd64/armhf/arm64
|
# Build and push sonic-slave-[buster|jessie|stretch] images for amd64/armhf/arm64
|
||||||
|
resources:
|
||||||
|
repositories:
|
||||||
|
- repository: buildimage
|
||||||
|
type: github
|
||||||
|
name: Azure/sonic-buildimage
|
||||||
|
ref: master
|
||||||
|
endpoint: build
|
||||||
|
|
||||||
schedules:
|
schedules:
|
||||||
- cron: "0 8 * * *"
|
- cron: "0 8 * * *"
|
||||||
|
@ -3,6 +3,13 @@
|
|||||||
# Add steps that build, run tests, deploy, and more:
|
# Add steps that build, run tests, deploy, and more:
|
||||||
# https://aka.ms/yaml
|
# https://aka.ms/yaml
|
||||||
# Build and push sonic-slave-[buster|jessie|stretch] images for amd64/armhf/arm64
|
# Build and push sonic-slave-[buster|jessie|stretch] images for amd64/armhf/arm64
|
||||||
|
resources:
|
||||||
|
repositories:
|
||||||
|
- repository: buildimage
|
||||||
|
type: github
|
||||||
|
name: Azure/sonic-buildimage
|
||||||
|
ref: master
|
||||||
|
endpoint: build
|
||||||
|
|
||||||
schedules:
|
schedules:
|
||||||
- cron: "0 8 * * *"
|
- cron: "0 8 * * *"
|
||||||
|
@ -3,14 +3,6 @@
|
|||||||
# Add steps that build, run tests, deploy, and more:
|
# Add steps that build, run tests, deploy, and more:
|
||||||
# https://aka.ms/yaml
|
# https://aka.ms/yaml
|
||||||
# Build and push sonic-slave-[buster|jessie|stretch] images for amd64/armhf/arm64
|
# Build and push sonic-slave-[buster|jessie|stretch] images for amd64/armhf/arm64
|
||||||
resources:
|
|
||||||
repositories:
|
|
||||||
- repository: buildimage
|
|
||||||
type: github
|
|
||||||
name: Azure/sonic-buildimage
|
|
||||||
ref: master
|
|
||||||
endpoint: build
|
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
- name: arch
|
- name: arch
|
||||||
type: string
|
type: string
|
||||||
|
@ -3,6 +3,13 @@
|
|||||||
# Add steps that build, run tests, deploy, and more:
|
# Add steps that build, run tests, deploy, and more:
|
||||||
# https://aka.ms/yaml
|
# https://aka.ms/yaml
|
||||||
# Build and push sonic-slave-[buster|jessie|stretch] images for amd64/armhf/arm64
|
# Build and push sonic-slave-[buster|jessie|stretch] images for amd64/armhf/arm64
|
||||||
|
resources:
|
||||||
|
repositories:
|
||||||
|
- repository: buildimage
|
||||||
|
type: github
|
||||||
|
name: Azure/sonic-buildimage
|
||||||
|
ref: master
|
||||||
|
endpoint: build
|
||||||
|
|
||||||
schedules:
|
schedules:
|
||||||
- cron: "0 8 * * *"
|
- cron: "0 8 * * *"
|
||||||
@ -53,8 +60,15 @@ stages:
|
|||||||
- ${{ each dist in parameters.dists }}:
|
- ${{ each dist in parameters.dists }}:
|
||||||
- ${{ if endswith(variables['Build.DefinitionName'], dist) }}:
|
- ${{ if endswith(variables['Build.DefinitionName'], dist) }}:
|
||||||
- ${{ each arch in parameters.arches }}:
|
- ${{ each arch in parameters.arches }}:
|
||||||
|
${{ if eq(variables['System.PullRequest.TargetBranch'], 'master') }}:
|
||||||
- template: docker-sonic-slave-template.yml
|
- template: docker-sonic-slave-template.yml
|
||||||
parameters:
|
parameters:
|
||||||
pool: sonicbld
|
pool: sonicbld
|
||||||
arch: ${{ arch }}
|
arch: ${{ arch }}
|
||||||
dist: ${{ dist }}
|
dist: ${{ dist }}
|
||||||
|
${{ else }}:
|
||||||
|
- template: .azure-pipelines/docker-sonic-slave-template.yml@buildimage
|
||||||
|
parameters:
|
||||||
|
pool: sonicbld
|
||||||
|
arch: ${{ arch }}
|
||||||
|
dist: ${{ dist }}
|
||||||
|
Reference in New Issue
Block a user