Skip to content

Commit

Permalink
Adds GitVersion and GitHub release task
Browse files Browse the repository at this point in the history
  • Loading branch information
chelnak committed Jul 25, 2019
1 parent 4595936 commit 6f342ef
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: 0.1.$(rev:r)

trigger:
batch: true
branches:
include:
- "*"
paths:
include:
- exporter/*
- azure-pipelines.yml
- requirements.txt
- Dockerfile

pr: none

Expand All @@ -16,6 +20,9 @@ variables:

steps:

- task: gittools.gitversion-preview.gitversion-task.GitVersion@5
displayName: GitVersion

- task: Docker@1
displayName: Build image
inputs:
Expand Down Expand Up @@ -51,3 +58,13 @@ steps:
command: Push an image
imageName: '$(IMAGE_NAME):latest'

- task: GitHubRelease@0
displayName: Create a GitHub GitHubRelease
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
gitHubConnection: 'chelnak'
repositoryName: 'chelnak/status-cake-exporter'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'manual'
tag: '$(Build.BuildNumber)'

0 comments on commit 6f342ef

Please sign in to comment.