ci: fix network for static build
This commit is contained in:
parent
e02ff7ec30
commit
4d835b18cc
|
@ -1,6 +1,6 @@
|
|||
# passbook
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
|
|
@ -181,10 +181,20 @@ stages:
|
|||
dockerComposeFile: 'scripts/docker-compose.yml'
|
||||
action: 'Run services'
|
||||
buildImages: false
|
||||
- task: CmdLine@2
|
||||
inputs:
|
||||
script: docker network ls
|
||||
- task: Docker@2
|
||||
inputs:
|
||||
containerRegistry: 'dockerhub'
|
||||
repository: 'beryju/passbook-static'
|
||||
command: 'buildAndPush'
|
||||
command: 'build'
|
||||
Dockerfile: 'static.Dockerfile'
|
||||
tags: '$(Build.SourceBranchName)'
|
||||
arguments: "--network=$(docker network ls | grep github | awk '{print $1}')"
|
||||
- task: Docker@2
|
||||
inputs:
|
||||
containerRegistry: 'dockerhub'
|
||||
repository: 'beryju/passbook-static'
|
||||
command: 'push'
|
||||
tags: '$(Build.SourceBranchName)'
|
||||
|
|
Reference in a new issue