forked from lachie83/croc-hunter
-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy path.vsts-ci.yml
48 lines (43 loc) · 1.6 KB
/
.vsts-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
resources:
- repo: self
queue:
name: Hosted Linux Preview
steps:
- task: Docker@0
displayName: Build an image
inputs:
azureSubscription: 'Microsoft Azure Internal Consumption (998e0f50-cedb-4e50-a461-52ef20a0478b)'
azureContainerRegistry: '{"loginServer":"acrjdtest.azurecr.io", "id" : "/subscriptions/998e0f50-cedb-4e50-a461-52ef20a0478b/resourceGroups/acrjdtest/providers/Microsoft.ContainerRegistry/registries/acrjdtest"}'
dockerFile: Dockerfile
buildArguments: 'VCS_REF=$(Build.SourceVersion)'
includeLatestTag: true
- task: Docker@0
displayName: Push an image
inputs:
azureSubscription: 'Microsoft Azure Internal Consumption (998e0f50-cedb-4e50-a461-52ef20a0478b)'
azureContainerRegistry: '{"loginServer":"acrjdtest.azurecr.io", "id" : "/subscriptions/998e0f50-cedb-4e50-a461-52ef20a0478b/resourceGroups/acrjdtest/providers/Microsoft.ContainerRegistry/registries/acrjdtest"}'
action: 'Push an image'
includeLatestTag: true
- task: HelmInstaller@0
displayName: Install Helm 2.9.1
inputs:
helmVersion: 2.9.1
- task: HelmDeploy@0
displayName: helm init --client-only
inputs:
azureSubscription: 'jessde (dfb5d696-98d8-447c-a14d-56f131f3c4a5)'
azureResourceGroup: jdk8s
kubernetesCluster: jdk8s
command: init
upgradeTiller: false
arguments: '--client-only'
- task: HelmDeploy@0
displayName: helm package
inputs:
azureSubscription: 'jessde (dfb5d696-98d8-447c-a14d-56f131f3c4a5)'
azureResourceGroup: jdk8s
kubernetesCluster: jdk8s
command: package
chartPath: 'charts/croc-hunter'
- task: PublishBuildArtifacts@1
displayName: drop