ci: set static network for static build

This commit is contained in:
Jens Langhammer 2020-05-29 10:04:23 +02:00
parent 4d835b18cc
commit 1c906b12be
1 changed files with 1 additions and 4 deletions

View File

@ -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'