From 278b8b2c9d2fe28ddea1080998d4e64c6fae0452 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Tue, 24 Sep 2019 17:43:15 -0500 Subject: [PATCH] try yaml-based web buildAndPush --- ops/azure-pipelines.web.yaml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/ops/azure-pipelines.web.yaml b/ops/azure-pipelines.web.yaml index 7a20bd680..27c7f9e1c 100644 --- a/ops/azure-pipelines.web.yaml +++ b/ops/azure-pipelines.web.yaml @@ -2,12 +2,21 @@ trigger: - master pool: - vmImage: 'ubuntu-latest' + vmImage: "ubuntu-latest" steps: - - task: DockerCompose@0 - displayName: build + - task: Docker@2 + displayName: login to github package registry inputs: - dockerComposeFile: 'docker-compose.yml' - additionalDockerComposeFiles: 'docker-compose.prod.yml' - dockerComposeCommand: 'build web' + command: login + containerRegistry: "GitHub Docker Package Registry - FilterLists" + + - task: Docker@2 + displayName: build and push + inputs: + command: buildAndPush + repository: collinbarrett/FilterLists + Dockerfile: src/FilterLists.Web/Dockerfile + tags: | + latest + $(Build.BuildId)