Коммит
48c7cf0c5c
|
@ -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
Двоичные данные
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'))
|
Загрузка…
Ссылка в новой задаче