This commit is contained in:
parent
09aa92ef5b
commit
f1f42c9a6a
@ -3,27 +3,36 @@
|
|||||||
# 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: sonic-net/sonic-buildimage
|
||||||
|
ref: master
|
||||||
|
endpoint: sonic-net
|
||||||
|
|
||||||
schedules:
|
schedules:
|
||||||
- cron: "0 8 * * *"
|
- cron: "0 0 * * 0"
|
||||||
|
displayName: Weekly build
|
||||||
branches:
|
branches:
|
||||||
include:
|
include:
|
||||||
- master
|
- master
|
||||||
- 202012
|
- 202???
|
||||||
always: true
|
always: true
|
||||||
|
|
||||||
trigger: none
|
pr: none
|
||||||
pr:
|
trigger:
|
||||||
|
batch: true
|
||||||
branches:
|
branches:
|
||||||
include:
|
include:
|
||||||
- master
|
- master
|
||||||
|
- 202???
|
||||||
paths:
|
paths:
|
||||||
include:
|
include:
|
||||||
- sonic-slave-jessie
|
- sonic-slave-*
|
||||||
- sonic-slave-stretch
|
- files/build/versions
|
||||||
- sonic-slave-buster
|
- Makefile
|
||||||
- sonic-slave-bullseye
|
- Makefile.work
|
||||||
- src/sonic-build-hooks
|
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
- name: 'arches'
|
- name: 'arches'
|
||||||
@ -47,13 +56,28 @@ parameters:
|
|||||||
default: sonicdev
|
default: sonicdev
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: Build
|
- stage: Build_in_amd64
|
||||||
jobs:
|
jobs:
|
||||||
- ${{ 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 }}:
|
||||||
- template: docker-sonic-slave-template.yml
|
- template: .azure-pipelines/docker-sonic-slave-template.yml@buildimage
|
||||||
parameters:
|
parameters:
|
||||||
pool: sonicbld
|
pool: sonicbld
|
||||||
arch: ${{ arch }}
|
arch: ${{ arch }}
|
||||||
dist: ${{ dist }}
|
dist: ${{ dist }}
|
||||||
|
${{ if ne(arch, 'amd64') }}:
|
||||||
|
march: _march_${{ arch }}
|
||||||
|
- stage: Build_native_arm
|
||||||
|
dependsOn: []
|
||||||
|
jobs:
|
||||||
|
- ${{ each dist in parameters.dists }}:
|
||||||
|
- ${{ if endswith(variables['Build.DefinitionName'], dist) }}:
|
||||||
|
- ${{ each arch in parameters.arches }}:
|
||||||
|
- ${{ if ne(arch, 'amd64') }}:
|
||||||
|
- template: .azure-pipelines/docker-sonic-slave-template.yml@buildimage
|
||||||
|
parameters:
|
||||||
|
pool: sonicbld-${{ arch }}
|
||||||
|
arch: ${{ arch }}
|
||||||
|
dist: ${{ dist }}
|
||||||
|
march: _${{ arch }}
|
||||||
|
Reference in New Issue
Block a user