Skip to content

Commit

Permalink
changed to two steps for docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
HansDahle committed Nov 5, 2024
1 parent 9911eac commit 7e23c78
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pipelines/api-pr-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 7e23c78

Please sign in to comment.