2021-04-30 18:35:38 -05:00
|
|
|
# Starter pipeline
|
|
|
|
# Start with a minimal pipeline that you can customize to build and deploy your code.
|
|
|
|
# Add steps that build, run tests, deploy, and more:
|
|
|
|
# https://aka.ms/yaml
|
|
|
|
# Build and push sonic-slave-[buster|jessie|stretch] images for amd64/armhf/arm64
|
2022-10-18 00:53:43 -05:00
|
|
|
resources:
|
|
|
|
repositories:
|
|
|
|
- repository: buildimage
|
|
|
|
type: github
|
|
|
|
name: sonic-net/sonic-buildimage
|
|
|
|
ref: master
|
|
|
|
endpoint: sonic-net
|
2021-04-30 18:35:38 -05:00
|
|
|
|
|
|
|
schedules:
|
2022-10-18 00:53:43 -05:00
|
|
|
- cron: "0 0 * * 0"
|
|
|
|
displayName: Weekly build
|
2021-04-30 18:35:38 -05:00
|
|
|
branches:
|
|
|
|
include:
|
2022-10-18 00:53:43 -05:00
|
|
|
- master
|
|
|
|
- 202???
|
2021-04-30 18:35:38 -05:00
|
|
|
always: true
|
|
|
|
|
2022-10-18 00:53:43 -05:00
|
|
|
pr: none
|
|
|
|
trigger:
|
|
|
|
batch: true
|
2021-04-30 18:35:38 -05:00
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
2022-10-18 00:53:43 -05:00
|
|
|
- 202???
|
2021-04-30 18:35:38 -05:00
|
|
|
paths:
|
|
|
|
include:
|
2022-10-18 00:53:43 -05:00
|
|
|
- sonic-slave-*
|
2021-12-08 01:42:33 -06:00
|
|
|
- src/sonic-build-hooks
|
2022-10-18 00:53:43 -05:00
|
|
|
- files/build/versions
|
|
|
|
- Makefile
|
|
|
|
- Makefile.work
|
2021-04-30 18:35:38 -05:00
|
|
|
|
|
|
|
parameters:
|
|
|
|
- name: 'arches'
|
|
|
|
type: object
|
2021-05-05 09:31:27 -05:00
|
|
|
default:
|
2021-04-30 18:35:38 -05:00
|
|
|
- amd64
|
|
|
|
- armhf
|
|
|
|
- arm64
|
|
|
|
- name: 'dists'
|
|
|
|
type: object
|
|
|
|
default:
|
|
|
|
- buster
|
|
|
|
- stretch
|
|
|
|
- jessie
|
|
|
|
- name: registry_url
|
|
|
|
type: string
|
|
|
|
default: sonicdev-microsoft.azurecr.io
|
|
|
|
- name: registry_conn
|
|
|
|
type: string
|
|
|
|
default: sonicdev
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- stage: Build
|
|
|
|
jobs:
|
|
|
|
- ${{ each dist in parameters.dists }}:
|
|
|
|
- ${{ if endswith(variables['Build.DefinitionName'], dist) }}:
|
|
|
|
- ${{ each arch in parameters.arches }}:
|
2022-10-18 00:53:43 -05:00
|
|
|
- template: .azure-pipelines/docker-sonic-slave-template.yml@buildimage
|
|
|
|
parameters:
|
|
|
|
pool: sonicbld
|
|
|
|
arch: ${{ arch }}
|
|
|
|
dist: ${{ dist }}
|
|
|
|
- stage: Build_march
|
|
|
|
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: march_
|