From 4d835b18cc925b1429cf58c62e2271115ce29eb8 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Fri, 29 May 2020 09:43:00 +0200 Subject: [PATCH] ci: fix network for static build --- README.md | 2 +- azure-pipelines.yml | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a77266825..bb83b5d40 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 37e37ef79..4a63bb065 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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)'