From 738d36fa225bca5fb954ae705051226bef75d569 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 1 Jun 2020 15:01:08 +0800 Subject: Revert CI. --- azure-pipelines.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 80caf9fe..7246c8dc 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -55,3 +55,25 @@ stages: inputs: codeCoverageTool: 'Cobertura' summaryFileLocation: '**/TestResults/*/coverage.cobertura.xml' + +- stage: deploy + displayName: Build Release and Deploy + dependsOn: build + condition: eq(variables['Build.SourceBranchName'], 'master') + variables: + buildConfiguration: 'Release' + + jobs: + - job: build + displayName: Build Release Artifact + pool: + vmImage: 'ubuntu-18.04' + steps: + - task: Docker@2 + displayName: Build And Push Docker Image + inputs: + command: buildAndPush + repository: crupest/timeline + tags: latest + buildContext: . + containerRegistry: crupest-docker-hub -- cgit v1.2.3