ci(azure-pipelines): separate docker build and push
This commit is contained in:
parent
763fa702da
commit
ae7c3d25a9
@ -17,10 +17,23 @@ jobs:
|
|||||||
command: login
|
command: login
|
||||||
containerRegistry: devFra
|
containerRegistry: devFra
|
||||||
- task: Docker@2
|
- task: Docker@2
|
||||||
name: dockerBuildAndPush
|
name: dockerBuild
|
||||||
displayName: Backend image build test
|
displayName: Backend image build
|
||||||
inputs:
|
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
|
Dockerfile: docker/haskell/Dockerfile
|
||||||
buildContext: .
|
buildContext: .
|
||||||
tags: |
|
tags: |
|
||||||
|
|||||||
Reference in New Issue
Block a user