From 008b00a393851cf49fa4995c95fa8ae3a50341e6 Mon Sep 17 00:00:00 2001 From: Shilong Liu Date: Sat, 2 Apr 2022 07:48:44 +0800 Subject: [PATCH] [ci] Set default ACR in UpgrateVersion/PR/official pipeline. (#10341) Why I did it docker hub will limit the pull rate. Use ACR instead to pull debian related docker image. How I did it Set DEFAULT_CONTAINER_REGISTRY in pipeline. --- .azure-pipelines/official-build.yml | 11 +++++++++++ azure-pipelines.yml | 8 ++++++++ 2 files changed, 19 insertions(+) diff --git a/.azure-pipelines/official-build.yml b/.azure-pipelines/official-build.yml index 4321e4761433..29016c6c439f 100644 --- a/.azure-pipelines/official-build.yml +++ b/.azure-pipelines/official-build.yml @@ -18,9 +18,20 @@ schedules: - 201911 - 201811 +resources: + repositories: + - repository: buildimage + type: github + name: Azure/sonic-buildimage + ref: master + endpoint: build + trigger: none pr: none +variables: +- template: .azure-pipelines/template-variables.yml@buildimage + stages: - stage: Build pool: sonicbld diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 549104ce2c6b..84e6994f75ab 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -30,6 +30,14 @@ resources: type: github name: Azure/sonic-mgmt endpoint: build + - repository: buildimage + type: github + name: Azure/sonic-buildimage + endpoint: build + ref: master + +variables: +- template: .azure-pipelines/template-variables.yml@buildimage stages: - stage: Build