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
|
2023-01-17 21:33:11 -06: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:
|
2023-01-17 21:33:11 -06:00
|
|
|
- cron: "0 0 * * 0"
|
|
|
|
displayName: Weekly build
|
2021-04-30 18:35:38 -05:00
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
2023-01-17 21:33:11 -06:00
|
|
|
- 202???
|
2021-04-30 18:35:38 -05:00
|
|
|
always: true
|
|
|
|
|
2023-01-17 21:33:11 -06:00
|
|
|
pr: none
|
|
|
|
trigger:
|
|
|
|
batch: true
|
2021-04-30 18:35:38 -05:00
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
2023-01-17 21:33:11 -06:00
|
|
|
- 202???
|
2021-04-30 18:35:38 -05:00
|
|
|
paths:
|
|
|
|
include:
|
2023-01-17 21:33:11 -06:00
|
|
|
- sonic-slave-*
|
|
|
|
- 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:
|
2023-01-17 21:33:11 -06: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:
|
2023-01-17 21:33:11 -06:00
|
|
|
- stage: Build_in_amd64
|
2021-04-30 18:35:38 -05:00
|
|
|
jobs:
|
|
|
|
- ${{ each dist in parameters.dists }}:
|
|
|
|
- ${{ if endswith(variables['Build.DefinitionName'], dist) }}:
|
|
|
|
- ${{ each arch in parameters.arches }}:
|
2023-01-17 21:33:11 -06:00
|
|
|
- template: .azure-pipelines/docker-sonic-slave-template.yml@buildimage
|
|
|
|
parameters:
|
|
|
|
pool: sonicbld
|
|
|
|
arch: ${{ arch }}
|
|
|
|
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 }}
|