ci(azure-pipelines): separate docker build and push
This commit is contained in:
parent
763fa702da
commit
ae7c3d25a9
@ -17,10 +17,23 @@ jobs:
|
||||
command: login
|
||||
containerRegistry: devFra
|
||||
- task: Docker@2
|
||||
name: dockerBuildAndPush
|
||||
displayName: Backend image build test
|
||||
name: dockerBuild
|
||||
displayName: Backend image build
|
||||
inputs:
|
||||
command: buildAndPush
|
||||
command: build
|
||||
Dockerfile: docker/haskell/Dockerfile
|
||||
buildContext: .
|
||||
tags: |
|
||||
$(Build.BuildNumber)
|
||||
arguments: |
|
||||
--build-arg HTTPS_PROXY=http://proxy.frankfurt-airport.de:8080
|
||||
--build-arg HTTP_PROXY=http://proxy.frankfurt-airport.de:8080
|
||||
--build-arg NO_PROXY='localhost,127.0.0.1,*.docker.internal,*.azmk8s.io,devfra.azurecr.io,devfra.westeurope.data.azurecr.io'
|
||||
- task: Docker@2
|
||||
name: dockerPush
|
||||
displayName: Backend image push
|
||||
inputs:
|
||||
command: push
|
||||
Dockerfile: docker/haskell/Dockerfile
|
||||
buildContext: .
|
||||
tags: |
|
||||
|
||||
Loading…
Reference in New Issue
Block a user