From 22dd2134809b8b16258da1c40b1314713b1eb869 Mon Sep 17 00:00:00 2001 From: cccs-kevin Date: Mon, 14 Nov 2022 19:22:43 +0000 Subject: [PATCH] Updating the pipeline --- pipelines/azure-build.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pipelines/azure-build.yaml b/pipelines/azure-build.yaml index 50e716c..2713bed 100644 --- a/pipelines/azure-build.yaml +++ b/pipelines/azure-build.yaml @@ -41,6 +41,11 @@ stages: inputs: command: login containerRegistry: dockerhub + - task: Docker@2 + displayName: Login to chimera + inputs: + command: login + containerRegistry: CHIMERA-U-ACR - checkout: self fetchDepth: 1 path: $(self_location) @@ -67,8 +72,8 @@ stages: for IMAGE in "cccs/" "uchimera.azurecr.io/cccs/" do - docker tag ${IMAGE}${BUILD_REPOSITORY_NAME##*/}:$BUILD_TYPE ${IMAGE}${BUILD_REPOSITORY_NAME##*/}:$TAG - docker tag ${IMAGE}${BUILD_REPOSITORY_NAME##*/}:$BUILD_TYPE ${IMAGE}${BUILD_REPOSITORY_NAME##*/}:$BUILD_TYPE + docker tag cccs/${BUILD_REPOSITORY_NAME##*/}:$BUILD_TYPE ${IMAGE}${BUILD_REPOSITORY_NAME##*/}:$TAG + docker tag cccs/${BUILD_REPOSITORY_NAME##*/}:$BUILD_TYPE ${IMAGE}${BUILD_REPOSITORY_NAME##*/}:$BUILD_TYPE docker push ${IMAGE}${BUILD_REPOSITORY_NAME##*/} --all-tags done displayName: Deploy to container repositories