From 7e23c78d1938bc89b3afe87a9a3b8fa504bbe10f Mon Sep 17 00:00:00 2001 From: Hans Dahle Date: Tue, 5 Nov 2024 07:34:18 +0100 Subject: [PATCH] changed to two steps for docker build --- pipelines/api-pr-pipeline.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pipelines/api-pr-pipeline.yml b/pipelines/api-pr-pipeline.yml index 67dfb24a4..8be0db682 100644 --- a/pipelines/api-pr-pipeline.yml +++ b/pipelines/api-pr-pipeline.yml @@ -54,13 +54,21 @@ stages: inputs: containerRegistry: 'fusion-aks-cr' repository: $(imageRepo) - command: 'buildAndPush' + command: 'build' buildContext: ./src/backend dockerfile: ./src/backend/api/Fusion.Resources.Api/Dockerfile tags: $(prNumber) arguments: | --cache-from=type=registry,ref=crfsharedhostingall.azurecr.io/$(imageRepo):$(prNumber) + - task: Docker@2 + displayName: 'Push image' + inputs: + containerRegistry: 'fusion-aks-cr' + repository: $(imageRepo) + command: push + tags: $(prNumber) + # - template: templates/docker-buildx.yml@infra # parameters: # containerRegistry: 'fusion-aks-cr'