diff options
author | crupest <crupest@outlook.com> | 2020-06-01 15:01:08 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-01 15:01:08 +0800 |
commit | 738d36fa225bca5fb954ae705051226bef75d569 (patch) | |
tree | 5ee2a7fcee12f641790370964ac83e5f91f45646 | |
parent | 5636e3c526055526d3f615fc9c3d43087a2ffc2a (diff) | |
download | timeline-738d36fa225bca5fb954ae705051226bef75d569.tar.gz timeline-738d36fa225bca5fb954ae705051226bef75d569.tar.bz2 timeline-738d36fa225bca5fb954ae705051226bef75d569.zip |
Revert CI.
-rw-r--r-- | azure-pipelines.yml | 22 |
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
|