ci(azure-pipelines): perform docker-login before any docker calls
This commit is contained in:
parent
f140342e2d
commit
6f5cc4da20
@ -22,6 +22,12 @@ jobs:
|
|||||||
endpoint: devfra
|
endpoint: devfra
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
|
- task: Docker@2
|
||||||
|
name: dockerLoginDevFra
|
||||||
|
displayName: Docker Login to devfra
|
||||||
|
inputs:
|
||||||
|
command: login
|
||||||
|
containerRegistry: devFra
|
||||||
- task: Bash@3
|
- task: Bash@3
|
||||||
displayName: Debug shell output
|
displayName: Debug shell output
|
||||||
inputs:
|
inputs:
|
||||||
@ -39,12 +45,6 @@ jobs:
|
|||||||
--build-arg MOUNT_DIR=$(Build.Repository.LocalPath) \
|
--build-arg MOUNT_DIR=$(Build.Repository.LocalPath) \
|
||||||
--build-arg PROJECT_DIR=/fradrive \
|
--build-arg PROJECT_DIR=/fradrive \
|
||||||
.
|
.
|
||||||
- task: Docker@2
|
|
||||||
name: dockerLoginDevFra
|
|
||||||
displayName: Docker Login to devfra
|
|
||||||
inputs:
|
|
||||||
command: login
|
|
||||||
containerRegistry: devFra
|
|
||||||
- task: Docker@2
|
- task: Docker@2
|
||||||
name: dockerBuild
|
name: dockerBuild
|
||||||
displayName: Backend image build test
|
displayName: Backend image build test
|
||||||
|
|||||||
Reference in New Issue
Block a user