aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-01 15:01:08 +0800
committercrupest <crupest@outlook.com>2020-06-01 15:01:08 +0800
commitf0e7b9ac7a676ed4bbe372dbbe39f2391ea61079 (patch)
tree103a4798f06def7f0a8f69a5bcd0cc666bd76cd0
parent0d0a419dab2600e5e5e934a572e8200d53b11c0e (diff)
downloadtimeline-f0e7b9ac7a676ed4bbe372dbbe39f2391ea61079.tar.gz
timeline-f0e7b9ac7a676ed4bbe372dbbe39f2391ea61079.tar.bz2
timeline-f0e7b9ac7a676ed4bbe372dbbe39f2391ea61079.zip
Revert CI.
-rw-r--r--azure-pipelines.yml22
1 files changed, 22 insertions, 0 deletions
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