Skip to content

Commit

Permalink
az acr helm push -u -p
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieu-benoit authored Apr 5, 2019
1 parent 25b31c3 commit f90232d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions parrot/azure-build-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ variables:
projectName: parrot
registryServerName: '$(registryName).azurecr.io'
imageName: '$(projectName)'
# define 4 more variables: tenantId, registryName, registryLogin and registryPassword in the build pipeline in UI
# define 3 more variables: registryName, registryLogin and registryPassword in the build pipeline in UI


steps:
Expand All @@ -38,11 +38,7 @@ steps:

- bash: helm package --version $(build.buildId) --destination $(build.artifactStagingDirectory) $(system.defaultWorkingDirectory)/$(projectName)/charts/$(projectName)
displayName: 'helm package'

- 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
- bash: az acr helm push -n $(registryName) -u $(registryLogin) -p $(registryPassword) $(build.artifactStagingDirectory)/$(projectName)-$(build.buildId).tgz
displayName: 'az acr helm push'
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/master'))

0 comments on commit f90232d

Please sign in to comment.