From 52c721887e1c32f3557d6bd4e18816249e20788f Mon Sep 17 00:00:00 2001 From: Shilong Liu Date: Fri, 18 Jun 2021 01:26:21 +0800 Subject: [PATCH] [CI] Add publish step in docker-sonic-mgmt azure pipeline (#7902) --- .azure-pipelines/docker-sonic-mgmt.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.azure-pipelines/docker-sonic-mgmt.yml b/.azure-pipelines/docker-sonic-mgmt.yml index 89e3f6838f..35d12f1223 100644 --- a/.azure-pipelines/docker-sonic-mgmt.yml +++ b/.azure-pipelines/docker-sonic-mgmt.yml @@ -43,6 +43,7 @@ stages: set -xe make configure PLATFORM=generic make target/docker-sonic-mgmt.gz + cp target -r $(Build.ArtifactStagingDirectory)/target docker load -i target/docker-sonic-mgmt.gz docker tag docker-sonic-mgmt $REGISTRY_SERVER/docker-sonic-mgmt:latest env: @@ -55,3 +56,7 @@ stages: repository: docker-sonic-mgmt command: push tags: latest + - publish: $(Build.ArtifactStagingDirectory) + artifact: 'docker-sonic-mgmt' + displayName: "Archive docker image sonic-mgmt" +