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

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|
|
@ -181,10 +181,20 @@ 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'
|
||||||
repository: 'beryju/passbook-static'
|
repository: 'beryju/passbook-static'
|
||||||
command: 'buildAndPush'
|
command: 'build'
|
||||||
Dockerfile: 'static.Dockerfile'
|
Dockerfile: 'static.Dockerfile'
|
||||||
tags: '$(Build.SourceBranchName)'
|
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