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
|
|
|
|
|
|
|
|
schedules:
|
|
|
|
- cron: "0 8 * * *"
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
2021-05-05 09:33:31 -05:00
|
|
|
- 202012
|
2021-04-30 18:35:38 -05:00
|
|
|
always: true
|
|
|
|
|
|
|
|
trigger: none
|
|
|
|
pr:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
include:
|
|
|
|
- sonic-slave-jessie
|
|
|
|
- sonic-slave-stretch
|
2021-05-05 09:33:31 -05:00
|
|
|
- sonic-slave-buster
|
2021-07-13 18:06:40 -05:00
|
|
|
- sonic-slave-bullseye
|
2021-12-03 23:23:09 -06:00
|
|
|
- src/sonic-build-hooks
|
2022-03-30 01:43:51 -05:00
|
|
|
- .azure-pipelines
|
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 }}:
|
2021-11-06 05:42:51 -05:00
|
|
|
- template: docker-sonic-slave-template.yml
|
|
|
|
parameters:
|
|
|
|
pool: sonicbld
|
|
|
|
arch: ${{ arch }}
|
|
|
|
dist: ${{ dist }}
|