ci: fix network for static build

This commit is contained in:
Jens Langhammer 2020-05-29 09:43:00 +02:00
parent e02ff7ec30
commit 4d835b18cc
2 changed files with 12 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# passbook
![](https://img.shields.io/github/workflow/status/beryju/passbook/passbook-ci?style=flat-square)
![](https://img.shields.io/azure-devops/build/beryjuorg/5d94b893-6dea-4f68-a8fe-10f1674fc3a9/1?style=flat-square)
![](https://img.shields.io/docker/pulls/beryju/passbook.svg?style=flat-square)
![](https://img.shields.io/docker/pulls/beryju/passbook-gatekeeper.svg?style=flat-square)
![](https://img.shields.io/docker/pulls/beryju/passbook-static.svg?style=flat-square)

View File

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