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-04-01 03:19:48 -05:00
|
|
|
resources:
|
|
|
|
repositories:
|
|
|
|
- repository: buildimage
|
|
|
|
type: github
|
2022-08-02 03:24:14 -05:00
|
|
|
name: sonic-net/sonic-buildimage
|
2022-04-01 03:19:48 -05:00
|
|
|
ref: master
|
2022-08-02 03:24:14 -05:00
|
|
|
endpoint: sonic-net
|
2021-04-30 18:35:38 -05:00
|
|
|
|
|
|
|
schedules:
|
2022-09-21 02:50:30 -05:00
|
|
|
- cron: "0 0 * * 0"
|
|
|
|
displayName: Weekly build
|
2021-04-30 18:35:38 -05:00
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
2022-09-21 02:50:30 -05:00
|
|
|
- 202???
|
2021-04-30 18:35:38 -05:00
|
|
|
always: true
|
|
|
|
|
2022-09-21 02:50:30 -05:00
|
|
|
pr: none
|
|
|
|
trigger:
|
|
|
|
batch: true
|
2021-04-30 18:35:38 -05:00
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
2022-09-21 02:50:30 -05:00
|
|
|
- 202???
|
2021-04-30 18:35:38 -05:00
|
|
|
paths:
|
|
|
|
include:
|
2022-09-21 02:50:30 -05:00
|
|
|
- sonic-slave-*
|
2021-12-03 23:23:09 -06:00
|
|
|
- src/sonic-build-hooks
|
2022-09-21 02:50:30 -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:33:31 -05:00
|
|
|
default:
|
2021-04-30 18:35:38 -05:00
|
|
|
- amd64
|
|
|
|
- armhf
|
|
|
|
- arm64
|
|
|
|
- name: 'dists'
|
|
|
|
type: object
|
|
|
|
default:
|
2021-07-13 18:06:40 -05:00
|
|
|
- bullseye
|
2021-04-30 18:35:38 -05:00
|
|
|
- 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-09-21 02:50:30 -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
|
2022-04-03 18:06:44 -05:00
|
|
|
parameters:
|
2022-09-21 02:50:30 -05:00
|
|
|
pool: sonicbld-${{ arch }}
|
2022-04-03 18:06:44 -05:00
|
|
|
arch: ${{ arch }}
|
|
|
|
dist: ${{ dist }}
|
2022-09-21 02:50:30 -05:00
|
|
|
march: march_
|