From dd3d6adfe24dd74ac1511013a0abde6fa9bb9d76 Mon Sep 17 00:00:00 2001 From: Ben Broderick Phillips Date: Tue, 19 Mar 2024 20:07:17 -0400 Subject: [PATCH] Build stable tags --- eng/pipelines/publish-docker-image-isolated.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/eng/pipelines/publish-docker-image-isolated.yml b/eng/pipelines/publish-docker-image-isolated.yml index 095da937fc2..0311309eb07 100644 --- a/eng/pipelines/publish-docker-image-isolated.yml +++ b/eng/pipelines/publish-docker-image-isolated.yml @@ -71,6 +71,16 @@ stages: path: ${{ config.configPath }} enableNetwork: true useBuildKit: true + - ${{ if config.stableTags }}: + - ${{ each stableTag in config.stableTags }}: + - task: 1ES.BuildContainerImage@1 + displayName: Build ${{ config.name }}:${{ stableTag }} + condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest')) + inputs: + image: ${{ parameters.ContainerRegistry }}.azurecr.io/${{ config.dockerRepo }}:${{ stableTag }} + path: ${{ config.configPath }} + enableNetwork: true + useBuildKit: true - ${{ if and(parameters.ManifestDeployment, parameters.Publish) }}: - ${{ each deployment in parameters.ManifestDeployment }}: