-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
39 lines (33 loc) · 1.06 KB
/
Copy pathazure-pipelines.yml
File metadata and controls
39 lines (33 loc) · 1.06 KB
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
# Docker
# Build and push an image to Azure Container Registry
# https://docs.microsoft.com/azure/devops/pipelines/languages/docker
resources:
- repo: self
variables:
# Container registry service connection established during pipeline creation
dockerRegistryServiceConnection: '5abf5033-815d-48ad-abcb-709344e9ad7a'
imageRepository: 'bluegreen'
containerRegistry: 'desattiracr.azurecr.io'
dockerfilePath: '$(Build.SourcesDirectory)/Dockerfile'
tag: '1023'
stages:
- stage: Deploy
displayName: Deploy
jobs:
- job: Deploy
displayName: Build
pool: Hosted Ubuntu 1604
steps:
- task: KubernetesManifest@0
name: bake
inputs:
action: 'bake'
namespace: 'default'
helmChart: 'charts/sampleapp'
releaseName: 'bluegreen'
overrides: |
image.repository:$(containerRegistry)/bluegreen
image.tag:$(tag)
ingress.enabled:true
ingress.hostname:bluegreen.d673faa123fa4d679d6c.eastus.aksapp.io
- upload: '$(bake.manifestsBundle)'