-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
66 lines (54 loc) · 1.52 KB
/
azure-pipelines.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
# Docker image
# Build a Docker image to deploy, run, or push to a container registry.
# Add steps that use Docker Compose, tag images, push to a registry, run an image, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker
trigger:
branches:
include:
- master
paths:
exclude:
- deploy-to-kube.sh
- .gitignore
- LICENSE
- README.md
pool:
vmImage: 'Ubuntu-16.04'
variables:
imageName: 'dsalamanca.azurecr.io/python-sql:$(build.buildId)'
steps:
- task: CmdLine@2
inputs:
script: 'tar cvzf estustar_ci.tgz static/ templates/ application.py requirements.txt'
- task: Docker@1
displayName: Login
inputs:
azureSubscriptionEndpoint: 'Inside Sales Sub (851e14db-af76-4238-93b5-368169c46a6e)'
azureContainerRegistry: dsalamanca.azurecr.io
command: login
- task: Docker@1
displayName: 'Build an image'
inputs:
imageName: '$(imageName)'
- task: Docker@1
displayName: 'Push an image'
inputs:
command: 'push'
imageName: '$(imageName)'
- task: HelmDeploy@0
displayName: 'helm init'
inputs:
command: init
connectionType: 'Azure Resource Manager'
azureSubscriptionEndpoint: 'Inside Sales Sub (851e14db-af76-4238-93b5-368169c46a6e)'
azureResourceGroup: 'K8sAzureCNI'
KubernetesCluster: 'K8sAzureCNI'
arguments: '--client-only'
- task: HelmDeploy@0
displayName: 'helm package'
inputs:
command: package
chartPath: './EstusFlask'
save: false
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifacts: drop'