diff options
-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
|