Skip to content

Commit

Permalink
add more master branch condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-benoit authored Mar 15, 2019
1 parent 513f281 commit 2aaad81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nodebrady/azure-build-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ steps:

- bash: docker login $(registryServerName) -u $(registryLogin) -p $(registryPassword)
displayName: 'docker login'
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/master'))

- bash: |
docker push $(registryServerName)/$(imageName):$(build.buildId)
Expand All @@ -40,6 +41,7 @@ steps:

- bash: az login --service-principal -u $(registryLogin) -p $(registryPassword) -t $(tenantId)
displayName: 'az login'
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/master'))

- bash: az acr helm push -n $(registryName) $(build.artifactStagingDirectory)/$(projectName)-$(build.buildId).tgz
displayName: 'az acr helm push'
Expand Down

0 comments on commit 2aaad81

Please sign in to comment.