Skip to content

Commit

Permalink
Added support for tag per architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
winromulus committed May 2, 2020
1 parent bfae2f6 commit 2190875
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 2190875

Please sign in to comment.