forked from microservices-demo/queue-master
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqueue-master-azure-pipelines.yml
More file actions
59 lines (49 loc) · 1.59 KB
/
queue-master-azure-pipelines.yml
File metadata and controls
59 lines (49 loc) · 1.59 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# 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
name: $(Date:yyyyMMdd)-$(Rev:r)
# name modifies the Build.BuildNumber format used in tag
# https://docs.microsoft.com/en-us/azure/devops/pipelines/process/run-number?view=azure-devops&tabs=yaml
trigger:
- master
variables:
# Container registry service connection established during pipeline creation
dockerfilePath: '**/docker/queue-master/Dockerfile'
tag: '$(Build.BuildNumber)'
serviceName: queuemaster
pool:
vmImage: 'ubuntu-latest'
resources:
repositories:
- repository: microservicesdemo
type: github
name: northpoint/microservices-demo
endpoint: github-svcconn
stages:
- stage: MavenBuild
displayName: Maven Scan & Build
jobs:
- template: /pipeline-templates/java-build.yaml@microservicesdemo
parameters:
mavenPomFile: 'pom.xml'
jdkVersionOption: 1.8
goals: package
version: $(tag)
- stage: DockerBuildPush
displayName: Docker Build & Push Stage
jobs:
- template: /pipeline-templates/docker-builddeploy-pipeline.yaml@microservicesdemo # Template reference
parameters:
tag: $(tag)
acrRepo: $(serviceName)
dockerfilePath: $(dockerfilePath)
artifact: jar
buildContext: $(Build.Repository.LocalPath)
- stage: HelmDeploy
displayName: Helm Deploy
jobs:
- template: /pipeline-templates/helm-deploy-pipeline.yaml@microservicesdemo
parameters:
serviceName: $(serviceName)
image: $(serviceName):$(tag)