From 2190875789b5b7c76cbbad220fede5ad20f9eb47 Mon Sep 17 00:00:00 2001 From: Romeo Dumitrescu Date: Sat, 2 May 2020 17:48:04 +0300 Subject: [PATCH] Added support for tag per architecture --- azure-pipelines.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yaml b/azure-pipelines.yaml index 4125f8c..c030565 100644 --- a/azure-pipelines.yaml +++ b/azure-pipelines.yaml @@ -180,9 +180,15 @@ stages: helmVersionToInstall: '3.1.1' - script: | docker pull $(imageRepository):build-$(Build.BuildNumber)-amd64 + docker tag $(imageRepository):build-$(Build.BuildNumber)-amd64 $(imageRepository):$(Build.BuildNumber)-amd64 + docker push $(imageRepository):$(Build.BuildNumber)-amd64 + docker pull $(imageRepository):build-$(Build.BuildNumber)-arm32 - docker manifest create $(imageRepository):$(Build.BuildNumber) $(imageRepository):build-$(Build.BuildNumber)-amd64 $(imageRepository):build-$(Build.BuildNumber)-arm32 - docker manifest create $(imageRepository):latest $(imageRepository):build-$(Build.BuildNumber)-amd64 $(imageRepository):build-$(Build.BuildNumber)-arm32 + docker tag $(imageRepository):build-$(Build.BuildNumber)-arm32 $(imageRepository):$(Build.BuildNumber)-arm32 + docker push $(imageRepository):$(Build.BuildNumber)-arm32 + + docker manifest create $(imageRepository):$(Build.BuildNumber) $(imageRepository):$(Build.BuildNumber)-amd64 $(imageRepository):$(Build.BuildNumber)-arm32 + docker manifest create $(imageRepository):latest $(imageRepository):$(Build.BuildNumber)-amd64 $(imageRepository):$(Build.BuildNumber)-arm32 docker manifest push $(imageRepository):$(Build.BuildNumber) docker manifest push $(imageRepository):latest displayName: 'docker pull, tag and push'