ci: set static network for static build
This commit is contained in:
parent
4d835b18cc
commit
1c906b12be
|
@ -181,9 +181,6 @@ stages:
|
||||||
dockerComposeFile: 'scripts/docker-compose.yml'
|
dockerComposeFile: 'scripts/docker-compose.yml'
|
||||||
action: 'Run services'
|
action: 'Run services'
|
||||||
buildImages: false
|
buildImages: false
|
||||||
- task: CmdLine@2
|
|
||||||
inputs:
|
|
||||||
script: docker network ls
|
|
||||||
- task: Docker@2
|
- task: Docker@2
|
||||||
inputs:
|
inputs:
|
||||||
containerRegistry: 'dockerhub'
|
containerRegistry: 'dockerhub'
|
||||||
|
@ -191,7 +188,7 @@ stages:
|
||||||
command: 'build'
|
command: 'build'
|
||||||
Dockerfile: 'static.Dockerfile'
|
Dockerfile: 'static.Dockerfile'
|
||||||
tags: '$(Build.SourceBranchName)'
|
tags: '$(Build.SourceBranchName)'
|
||||||
arguments: "--network=$(docker network ls | grep github | awk '{print $1}')"
|
arguments: "--network=beryjupassbook_default"
|
||||||
- task: Docker@2
|
- task: Docker@2
|
||||||
inputs:
|
inputs:
|
||||||
containerRegistry: 'dockerhub'
|
containerRegistry: 'dockerhub'
|
||||||
|
|
Reference in New Issue