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
|
2023-06-26 11:14:51 -05:00
|
|
|
ref: bookworm
|
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-*
|
|
|
|
- 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-06-26 11:14:51 -05:00
|
|
|
- bookworm
|
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:
|
2022-12-27 01:40:15 -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 }}:
|
2022-09-21 02:50:30 -05:00
|
|
|
- template: .azure-pipelines/docker-sonic-slave-template.yml@buildimage
|
|
|
|
parameters:
|
|
|
|
pool: sonicbld
|
|
|
|
arch: ${{ arch }}
|
|
|
|
dist: ${{ dist }}
|
2022-12-27 01:40:15 -06:00
|
|
|
${{ if ne(arch, 'amd64') }}:
|
|
|
|
march: _march_${{ arch }}
|
|
|
|
- stage: Build_native_arm
|
2022-09-21 02:50:30 -05:00
|
|
|
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-12-27 01:40:15 -06:00
|
|
|
march: _${{ arch }}
|