forked from helm/charts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-5.yml
71 lines (62 loc) · 1.78 KB
/
azure-pipelines-5.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- none
pool:
vmImage: 'ubuntu-latest'
jobs:
- job: Build
steps:
# - task: Docker@2
# inputs:
# command: 'build'
# Dockerfile: 'Dockerfile'
# tags: 'latest'
# arguments: '-t testimg235'
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)'
contents: '$(Pipeline.Workspace)/**'
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)
ArtifactName: 'drop'
- deployment: Deploy
environment: 'shigupt.something'
dependsOn: Build
strategy:
runOnce:
deploy:
steps:
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
downloadType: 'single'
artifactName: 'drop'
downloadPath: '$(System.ArtifactsDirectory)'
- task: HelmInstaller@0
inputs:
helmVersion: '2.14.1'
- task: CmdLine@2
inputs:
script: |
cd $(System.DefaultWorkingDirectory)
ls
- task: [email protected]
name: helmdep
inputs:
connectionType: 'Azure Resource Manager'
namespace: 'something'
command: 'install'
chartType: 'FilePath'
chartPath: 'drop/demo-chart1*.gz'
releaseName: 'release1nov30'
overrideValues: 'image.repository=testimg215'
waitForExecution: false
# - task: Bash@3
# inputs:
# targetType: 'inline'
# script: 'echo "$(helmdep.helmOutput)"'