forked from asc-lab/micronaut-microservices-poc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
119 lines (117 loc) · 6.71 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
pool:
vmImage: 'macos-10.15'
variables:
tag: '$(build.buildId)'
steps:
- script: docker login -u $(dockerId) -p $(dockerPass)
displayName: "docker login"
- script: |
echo "##vso[task.setvariable variable=JAVA_HOME]$(JAVA_HOME_14_X64)"
echo "##vso[task.setvariable variable=PATH]$(JAVA_HOME_14_X64)/bin:$(PATH)"
displayName: "Set java version"
- task: NodeTool@0
inputs:
versionSpec: 10.16.3
# Maven build
- task: ShellScript@2
inputs:
scriptPath: 'build-without-tests.sh'
# agent-portal-gateway
- script: docker build -t $(dockerNamespace)/agent-portal-gateway agent-portal-gateway
displayName: 'docker build agent-portal-gateway'
- script: docker tag $(dockerNamespace)/agent-portal-gateway $(dockerNamespace)/agent-portal-gateway:$(tag)
displayName: 'docker tag $(dockerNamespace)/agent-portal-gateway:$(tag)'
- script: docker push $(dockerNamespace)/agent-portal-gateway:$(tag)
displayName: 'docker push $(dockerNamespace)/agent-portal-gateway:$(tag)'
- script: docker push $(dockerNamespace)/agent-portal-gateway:latest
displayName: 'docker push $(dockerNamespace)/agent-portal-gateway:latest'
# auth-service
- script: docker build -t $(dockerNamespace)/auth-service auth-service
displayName: 'docker build auth-service'
- script: docker tag $(dockerNamespace)/auth-service $(dockerNamespace)/auth-service:$(tag)
displayName: 'docker tag $(dockerNamespace)/auth-service:$(tag)'
- script: docker push $(dockerNamespace)/auth-service:$(tag)
displayName: 'docker push $(dockerNamespace)/auth-service:$(tag)'
- script: docker push $(dockerNamespace)/auth-service:latest
displayName: 'docker push $(dockerNamespace)/auth-service:latest'
# chat-service
- script: docker build -t $(dockerNamespace)/chat-service chat-service
displayName: 'docker build chat-service'
- script: docker tag $(dockerNamespace)/chat-service $(dockerNamespace)/chat-service:$(tag)
displayName: 'docker tag $(dockerNamespace)/chat-service:$(tag)'
- script: docker push $(dockerNamespace)/chat-service:$(tag)
displayName: 'docker push $(dockerNamespace)/chat-service:$(tag)'
- script: docker push $(dockerNamespace)/chat-service:latest
displayName: 'docker push $(dockerNamespace)/chat-service:latest'
# documents-service
- script: docker build -t $(dockerNamespace)/documents-service documents-service
displayName: 'docker build documents-service'
- script: docker tag $(dockerNamespace)/documents-service $(dockerNamespace)/documents-service:$(tag)
displayName: 'docker tag $(dockerNamespace)/documents-service:$(tag)'
- script: docker push $(dockerNamespace)/documents-service:$(tag)
displayName: 'docker push $(dockerNamespace)/documents-service:$(tag)'
- script: docker push $(dockerNamespace)/documents-service:latest
displayName: 'docker push $(dockerNamespace)/documents-service:latest'
# dashboard-service
- script: docker build -t $(dockerNamespace)/dashboard-service dashboard-service
displayName: 'docker build dashboard-service'
- script: docker tag $(dockerNamespace)/dashboard-service $(dockerNamespace)/dashboard-service:$(tag)
displayName: 'docker tag $(dockerNamespace)/dashboard-service:$(tag)'
- script: docker push $(dockerNamespace)/dashboard-service:$(tag)
displayName: 'docker push $(dockerNamespace)/dashboard-service:$(tag)'
- script: docker push $(dockerNamespace)/dashboard-service:latest
displayName: 'docker push $(dockerNamespace)/dashboard-service:latest'
# payment-service
- script: docker build -t $(dockerNamespace)/payment-service payment-service
displayName: 'docker build payment-service'
- script: docker tag $(dockerNamespace)/payment-service $(dockerNamespace)/payment-service:$(tag)
displayName: 'docker tag $(dockerNamespace)/payment-service:$(tag)'
- script: docker push $(dockerNamespace)/payment-service:$(tag)
displayName: 'docker push $(dockerNamespace)/payment-service:$(tag)'
- script: docker push $(dockerNamespace)/payment-service:latest
displayName: 'docker push $(dockerNamespace)/payment-service:latest'
# policy-search-service
- script: docker build -t $(dockerNamespace)/policy-search-service policy-search-service
displayName: 'docker build policy-search-service'
- script: docker tag $(dockerNamespace)/policy-search-service $(dockerNamespace)/policy-search-service:$(tag)
displayName: 'docker tag $(dockerNamespace)/policy-search-service:$(tag)'
- script: docker push $(dockerNamespace)/policy-search-service:$(tag)
displayName: 'docker push $(dockerNamespace)/policy-search-service:$(tag)'
- script: docker push $(dockerNamespace)/policy-search-service:latest
displayName: 'docker push $(dockerNamespace)/policy-search-service:latest'
# policy-service
- script: docker build -t $(dockerNamespace)/policy-service policy-service
displayName: 'docker build policy-service'
- script: docker tag $(dockerNamespace)/policy-service $(dockerNamespace)/policy-service:$(tag)
displayName: 'docker tag $(dockerNamespace)/policy-service:$(tag)'
- script: docker push $(dockerNamespace)/policy-service:$(tag)
displayName: 'docker push $(dockerNamespace)/policy-service:$(tag)'
- script: docker push $(dockerNamespace)/policy-service:latest
displayName: 'docker push $(dockerNamespace)/policy-service:latest'
# pricing-service
- script: docker build -t $(dockerNamespace)/pricing-service pricing-service
displayName: 'docker build pricing-service'
- script: docker tag $(dockerNamespace)/pricing-service $(dockerNamespace)/pricing-service:$(tag)
displayName: 'docker tag $(dockerNamespace)/pricing-service:$(tag)'
- script: docker push $(dockerNamespace)/pricing-service:$(tag)
displayName: 'docker push $(dockerNamespace)/pricing-service:$(tag)'
- script: docker push $(dockerNamespace)/pricing-service:latest
displayName: 'docker push $(dockerNamespace)/pricing-service:latest'
# product-service
- script: docker build -t $(dockerNamespace)/product-service product-service
displayName: 'docker build product-service'
- script: docker tag $(dockerNamespace)/product-service $(dockerNamespace)/product-service:$(tag)
displayName: 'docker tag $(dockerNamespace)/product-service:$(tag)'
- script: docker push $(dockerNamespace)/product-service:$(tag)
displayName: 'docker push $(dockerNamespace)/product-service:$(tag)'
- script: docker push $(dockerNamespace)/product-service:latest
displayName: 'docker push $(dockerNamespace)/product-service:latest'
# web-vue
- script: docker build -t $(dockerNamespace)/web-vue web-vue
displayName: 'docker build web-vue'
- script: docker tag $(dockerNamespace)/web-vue $(dockerNamespace)/web-vue:$(tag)
displayName: 'docker tag $(dockerNamespace)/web-vue:$(tag)'
- script: docker push $(dockerNamespace)/web-vue:$(tag)
displayName: 'docker push $(dockerNamespace)/web-vue:$(tag)'
- script: docker push $(dockerNamespace)/web-vue:latest
displayName: 'docker push $(dockerNamespace)/web-vue:latest'