forked from microsoft/PartsUnlimitedMRP
-
Notifications
You must be signed in to change notification settings - Fork 3
/
azure-pipelines.yml
76 lines (67 loc) · 1.67 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
67
68
69
70
71
72
73
74
75
76
# Deploy to Kubernetes
# Build a Docker image, push to an Azure Container Registry, & deploy it to Azure Kubernetes Service.
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker
trigger:
- master
resources:
- repo: self
variables:
# Container registry service connection established during pipeline creation - Docker Hub/ACR/...
dockerRegistryServiceConnection: '59e7146a-6e91-47c4-b1e3-14b3f3ae1374'
imageRepository: 'express-aks'
containerRegistryName: 'atulmakshelm.azurecr.io'
dockerfilePath: '**/Dockerfile'
tag: '$(Build.BuildId)'
# Kubernetes Namespace
k8sNamespace: 'dev'
imagePullSecret: 'atulmakshelm-auth'
# Agent Pool Name
poolName: 'Hosted Ubuntu 1604'
stages:
- stage: Build
displayName: Build stage
jobs:
- job: Build
displayName: Build job
pool: default
steps:
- script: echo build and push
- stage: Deploy
displayName: Deploy stage
dependsOn: Build
jobs:
- deployment: Deploy
displayName: Deploy job
pool: default
environment: 'gopinathchexpressAKS.default'
strategy:
runOnce:
deploy:
steps:
- script: echo deploying
- stage: UAT
displayName: Prod stage
dependsOn: Deploy
jobs:
- deployment: Deploy
displayName: Deploy job
pool: default
environment: 'expressAKS-UAT'
strategy:
runOnce:
deploy:
steps:
- script: echo deploying
- stage: Prod
displayName: Prod stage
dependsOn: UAT
jobs:
- deployment: Deploy
displayName: Deploy job
pool: default
environment: 'expressAKS-Canary'
strategy:
runOnce:
deploy:
steps:
- script: echo deploying