Merge pull request #11 from Azure/master

Merge from master
This commit is contained in:
Mathieu Benoit 2019-02-06 18:18:07 -05:00 коммит произвёл GitHub
Родитель eea00746c7 79854cda1e
Коммит 48c7cf0c5c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 125 добавлений и 3 удалений

Просмотреть файл

@ -0,0 +1,39 @@
pool:
vmImage: 'Ubuntu 16.04'
trigger:
paths:
include:
- captainkube/
variables:
projectName: captainkube
registryServerName: '$(registryName).azurecr.io'
imageName: '$(projectName)'
# define 3 more variables: 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'
inputs:
helmVersion: 2.12.3
- bash: helm package --version $(build.buildId) --destination $(build.artifactStagingDirectory) $(system.defaultWorkingDirectory)/$(projectName)/charts/$(projectName)
displayName: 'helm package'
- 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'))

Двоичные данные
media/azure-devops-workflow.png

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 92 KiB

После

Ширина:  |  Высота:  |  Размер: 90 KiB

Просмотреть файл

@ -0,0 +1,39 @@
pool:
vmImage: 'Ubuntu 16.04'
trigger:
paths:
include:
- nodebrady/
variables:
projectName: nodebrady
registryServerName: '$(registryName).azurecr.io'
imageName: '$(projectName)'
# define 3 more variables: 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'
inputs:
helmVersion: 2.12.3
- bash: helm package --version $(build.buildId) --destination $(build.artifactStagingDirectory) $(system.defaultWorkingDirectory)/$(projectName)/charts/$(projectName)
displayName: 'helm package'
- 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'))

Просмотреть файл

@ -1,11 +1,16 @@
pool:
vmImage: 'Ubuntu 16.04'
trigger:
paths:
include:
- parrot/
variables:
projectName: parrot
registryServerName: '$(registryName).azurecr.io'
imageName: '$(projectName)'
# define 4 more variables: projectName, 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:
@ -22,9 +27,9 @@ steps:
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/master'))
- task: HelmInstaller@0
displayName: 'Install Helm 2.11.0'
displayName: 'Install Helm'
inputs:
helmVersion: 2.11.0
helmVersion: 2.12.3
- bash: helm package --version $(build.buildId) --destination $(build.artifactStagingDirectory) $(system.defaultWorkingDirectory)/$(projectName)/charts/$(projectName)
displayName: 'helm package'

Просмотреть файл

@ -0,0 +1,39 @@
pool:
vmImage: 'Ubuntu 16.04'
trigger:
paths:
include:
- phippy/
variables:
projectName: phippy
registryServerName: '$(registryName).azurecr.io'
imageName: '$(projectName)'
# define 3 more variables: 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'
inputs:
helmVersion: 2.12.3
- bash: helm package --version $(build.buildId) --destination $(build.artifactStagingDirectory) $(system.defaultWorkingDirectory)/$(projectName)/charts/$(projectName)
displayName: 'helm package'
- 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'))