90bcc51203
Add 3 pipeline files: - pipeline for build docker image sonic-slave-[buster|jessie|stretch] for amd64/armhf/arm64, and push to ACR(sonicdev-microsoft.com) - pipeline for build docker image sonic-mgmt, and push to ACR - pipeline for cleaning dpkg cache which are created more than 30 days. Co-authored-by: lguohan <lguohan@gmail.com>
28 lines
548 B
YAML
28 lines
548 B
YAML
# 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
|
|
# Clean up the cache 30 days ago
|
|
|
|
schedules:
|
|
- cron: "0 0 * * *"
|
|
branches:
|
|
include:
|
|
- master
|
|
always: true
|
|
|
|
trigger: none
|
|
pr: none
|
|
|
|
jobs:
|
|
- job: Build
|
|
pool: sonicbld
|
|
timeoutInMinutes: 5
|
|
steps:
|
|
- checkout: none
|
|
- script: |
|
|
set -xe
|
|
sudo find /nfs/dpkg_cache/ -name *.tgz -mtime +30 -type f -delete
|
|
displayName: clean dpkg cache
|
|
|