Skip to content

Commit

Permalink
Add branch condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mhamrah committed Jul 31, 2019
1 parent 6f67db8 commit 88c4a6b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ steps:
inputs:
containerRegistry: 'namely-protoc'
command: 'login'

condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))

- script: make push-latest
displayName: "Docker Push"
displayName: "Docker Push"
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))

0 comments on commit 88c4a6b

Please sign in to comment.