This repository has been archived by the owner on Jan 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Azure/master
Merge from master
- Loading branch information
Showing
5 changed files
with
177 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
|
||
|
||
variables: | ||
registryServerName: '$(registryName).azurecr.io' | ||
projectName: 'captainkube' | ||
imageName: '$(projectName)' | ||
# define 4 more variables registryAzureSubscriptionServiceEndpoint, registryName, registryLogin and registryPassword in the build pipeline in UI | ||
|
||
|
||
steps: | ||
- bash: docker build -f $(system.defaultWorkingDirectory)/$(projectName)/Dockerfile -t $(registryServerName)/$(imageName):$(build.buildId) -t $(registryServerName)/$(imageName):latest $(system.defaultWorkingDirectory)/$(projectName) | ||
displayName: 'docker build' | ||
|
||
- bash: docker login $(registryServerName) -u $(registryLogin) -p $(registryPassword) | ||
displayName: 'docker login' | ||
|
||
- bash: | | ||
docker push $(registryServerName)/$(imageName):$(build.buildId) | ||
docker push $(registryServerName)/$(imageName):latest | ||
displayName: 'docker push' | ||
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/master')) | ||
|
||
- task: HelmInstaller@0 | ||
displayName: 'Install Helm 2.11.0' | ||
inputs: | ||
helmVersion: 2.11.0 | ||
|
||
- bash: helm init --client-only --wait | ||
displayName: 'helm init' | ||
|
||
- bash: helm package --version $(build.buildId) --destination $(build.artifactStagingDirectory) $(system.defaultWorkingDirectory)/$(projectName)/charts/$(projectName) | ||
displayName: 'helm package' | ||
|
||
- task: AzureCLI@1 | ||
displayName: 'az acr helm push' | ||
inputs: | ||
azureSubscription: '$(registryAzureSubscriptionServiceEndpoint)' | ||
scriptLocation: inlineScript | ||
inlineScript: 'az acr helm push -n $(registryName) $(build.artifactStagingDirectory)/$(projectName)-$(build.buildId).tgz' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
|
||
|
||
variables: | ||
registryServerName: '$(registryName).azurecr.io' | ||
projectName: 'nodebrady' | ||
imageName: '$(projectName)' | ||
# define 4 more variables registryAzureSubscriptionServiceEndpoint, registryName, registryLogin and registryPassword in the build pipeline in UI | ||
|
||
|
||
steps: | ||
- bash: docker build -f $(system.defaultWorkingDirectory)/$(projectName)/Dockerfile -t $(registryServerName)/$(imageName):$(build.buildId) -t $(registryServerName)/$(imageName):latest $(system.defaultWorkingDirectory)/$(projectName) | ||
displayName: 'docker build' | ||
|
||
- bash: docker login $(registryServerName) -u $(registryLogin) -p $(registryPassword) | ||
displayName: 'docker login' | ||
|
||
- bash: | | ||
docker push $(registryServerName)/$(imageName):$(build.buildId) | ||
docker push $(registryServerName)/$(imageName):latest | ||
displayName: 'docker push' | ||
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/master')) | ||
|
||
- task: HelmInstaller@0 | ||
displayName: 'Install Helm 2.11.0' | ||
inputs: | ||
helmVersion: 2.11.0 | ||
|
||
- bash: helm init --client-only --wait | ||
displayName: 'helm init' | ||
|
||
- bash: helm package --version $(build.buildId) --destination $(build.artifactStagingDirectory) $(system.defaultWorkingDirectory)/$(projectName)/charts/$(projectName) | ||
displayName: 'helm package' | ||
|
||
- task: AzureCLI@1 | ||
displayName: 'az acr helm push' | ||
inputs: | ||
azureSubscription: '$(registryAzureSubscriptionServiceEndpoint)' | ||
scriptLocation: inlineScript | ||
inlineScript: 'az acr helm push -n $(registryName) $(build.artifactStagingDirectory)/$(projectName)-$(build.buildId).tgz' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
|
||
|
||
variables: | ||
registryServerName: '$(registryName).azurecr.io' | ||
projectName: 'parrot' | ||
imageName: '$(projectName)' | ||
# define 4 more variables registryAzureSubscriptionServiceEndpoint, registryName, registryLogin and registryPassword in the build pipeline in UI | ||
|
||
|
||
steps: | ||
- bash: docker build -f $(system.defaultWorkingDirectory)/$(projectName)/Dockerfile -t $(registryServerName)/$(imageName):$(build.buildId) -t $(registryServerName)/$(imageName):latest $(system.defaultWorkingDirectory)/$(projectName) | ||
displayName: 'docker build' | ||
|
||
- bash: docker login $(registryServerName) -u $(registryLogin) -p $(registryPassword) | ||
displayName: 'docker login' | ||
|
||
- bash: | | ||
docker push $(registryServerName)/$(imageName):$(build.buildId) | ||
docker push $(registryServerName)/$(imageName):latest | ||
displayName: 'docker push' | ||
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/master')) | ||
|
||
- task: HelmInstaller@0 | ||
displayName: 'Install Helm 2.11.0' | ||
inputs: | ||
helmVersion: 2.11.0 | ||
|
||
- bash: helm init --client-only --wait | ||
displayName: 'helm init' | ||
|
||
- bash: helm package --version $(build.buildId) --destination $(build.artifactStagingDirectory) $(system.defaultWorkingDirectory)/$(projectName)/charts/$(projectName) | ||
displayName: 'helm package' | ||
|
||
- task: AzureCLI@1 | ||
displayName: 'az acr helm push' | ||
inputs: | ||
azureSubscription: '$(registryAzureSubscriptionServiceEndpoint)' | ||
scriptLocation: inlineScript | ||
inlineScript: 'az acr helm push -n $(registryName) $(build.artifactStagingDirectory)/$(projectName)-$(build.buildId).tgz' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
|
||
|
||
variables: | ||
registryServerName: '$(registryName).azurecr.io' | ||
projectName: 'phippy' | ||
imageName: '$(projectName)' | ||
# define 4 more variables registryAzureSubscriptionServiceEndpoint, registryName, registryLogin and registryPassword in the build pipeline in UI | ||
|
||
|
||
steps: | ||
- bash: docker build -f $(system.defaultWorkingDirectory)/$(projectName)/Dockerfile -t $(registryServerName)/$(imageName):$(build.buildId) -t $(registryServerName)/$(imageName):latest $(system.defaultWorkingDirectory)/$(projectName) | ||
displayName: 'docker build' | ||
|
||
- bash: docker login $(registryServerName) -u $(registryLogin) -p $(registryPassword) | ||
displayName: 'docker login' | ||
|
||
- bash: | | ||
docker push $(registryServerName)/$(imageName):$(build.buildId) | ||
docker push $(registryServerName)/$(imageName):latest | ||
displayName: 'docker push' | ||
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/master')) | ||
|
||
- task: HelmInstaller@0 | ||
displayName: 'Install Helm 2.11.0' | ||
inputs: | ||
helmVersion: 2.11.0 | ||
|
||
- bash: helm init --client-only --wait | ||
displayName: 'helm init' | ||
|
||
- bash: helm package --version $(build.buildId) --destination $(build.artifactStagingDirectory) $(system.defaultWorkingDirectory)/$(projectName)/charts/$(projectName) | ||
displayName: 'helm package' | ||
|
||
- task: AzureCLI@1 | ||
displayName: 'az acr helm push' | ||
inputs: | ||
azureSubscription: '$(registryAzureSubscriptionServiceEndpoint)' | ||
scriptLocation: inlineScript | ||
inlineScript: 'az acr helm push -n $(registryName) $(build.artifactStagingDirectory)/$(projectName)-$(build.buildId).tgz' |