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