Skip to content

Commit b974352

Browse files
committed
publish latest
1 parent 85805a4 commit b974352

14 files changed

Lines changed: 50 additions & 15 deletions

File tree

.github/workflows/build-and-publish.yaml

Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# - Conditional Jobs: A dedicated job is triggered for each microservice, but only if files
99
# within its specific directory have changed. This is determined by a preliminary 'changes' job.
1010
# - Dynamic Tagging: Docker images are tagged with a unique, time-based versioning scheme
11-
# (v1.YYYYMMDD.HHMMSSfff) to ensure traceability.
11+
# (v1.YYYYMMDD.HHMMSSfff) and 'latest' to ensure traceability and ease of use.
1212

1313
name: Build and Publish Services
1414

@@ -94,7 +94,9 @@ jobs:
9494
with:
9595
context: src/${{ env.SERVICE_NAME }}
9696
push: true
97-
tags: ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
97+
tags: |
98+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
99+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:latest
98100
99101
cartservice:
100102
name: Build and Publish Cart Service
@@ -119,7 +121,9 @@ jobs:
119121
with:
120122
context: src/${{ env.SERVICE_NAME }}/src
121123
push: true
122-
tags: ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
124+
tags: |
125+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
126+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:latest
123127
124128
checkoutservice:
125129
name: Build and Publish Checkout Service
@@ -144,7 +148,9 @@ jobs:
144148
with:
145149
context: src/${{ env.SERVICE_NAME }}
146150
push: true
147-
tags: ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
151+
tags: |
152+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
153+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:latest
148154
149155
currencyservice:
150156
name: Build and Publish Currency Service
@@ -169,7 +175,9 @@ jobs:
169175
with:
170176
context: src/${{ env.SERVICE_NAME }}
171177
push: true
172-
tags: ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
178+
tags: |
179+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
180+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:latest
173181
174182
emailservice:
175183
name: Build and Publish Email Service
@@ -194,7 +202,9 @@ jobs:
194202
with:
195203
context: src/${{ env.SERVICE_NAME }}
196204
push: true
197-
tags: ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
205+
tags: |
206+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
207+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:latest
198208
199209
frontend:
200210
name: Build and Publish Frontend Service
@@ -219,7 +229,9 @@ jobs:
219229
with:
220230
context: src/${{ env.SERVICE_NAME }}
221231
push: true
222-
tags: ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
232+
tags: |
233+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
234+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:latest
223235
224236
loadgenerator:
225237
name: Build and Publish Load Generator
@@ -244,7 +256,9 @@ jobs:
244256
with:
245257
context: src/${{ env.SERVICE_NAME }}
246258
push: true
247-
tags: ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
259+
tags: |
260+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
261+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:latest
248262
249263
paymentservice:
250264
name: Build and Publish Payment Service
@@ -269,7 +283,9 @@ jobs:
269283
with:
270284
context: src/${{ env.SERVICE_NAME }}
271285
push: true
272-
tags: ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
286+
tags: |
287+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
288+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:latest
273289
274290
productcatalogservice:
275291
name: Build and Publish Product Catalog Service
@@ -294,7 +310,9 @@ jobs:
294310
with:
295311
context: src/${{ env.SERVICE_NAME }}
296312
push: true
297-
tags: ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
313+
tags: |
314+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
315+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:latest
298316
299317
recommendationservice:
300318
name: Build and Publish Recommendation Service
@@ -319,7 +337,9 @@ jobs:
319337
with:
320338
context: src/${{ env.SERVICE_NAME }}
321339
push: true
322-
tags: ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
340+
tags: |
341+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
342+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:latest
323343
324344
shippingservice:
325345
name: Build and Publish Shipping Service
@@ -344,7 +364,9 @@ jobs:
344364
with:
345365
context: src/${{ env.SERVICE_NAME }}
346366
push: true
347-
tags: ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
367+
tags: |
368+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
369+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:latest
348370
349371
shoppingassistantservice:
350372
name: Build and Publish Shopping Assistant Service
@@ -369,4 +391,6 @@ jobs:
369391
with:
370392
context: src/${{ env.SERVICE_NAME }}
371393
push: true
372-
tags: ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
394+
tags: |
395+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:${{ steps.image_tag.outputs.TAG }}
396+
ghcr.io/do-solutions/microservices-demo-${{ env.SERVICE_NAME }}:latest

helm/templates/adservice.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ spec:
6969
- ALL
7070
privileged: false
7171
readOnlyRootFilesystem: true
72-
{{/* image: {{ .Values.images.repository }}/{{ .Values.adService.name }}:{{ .Values.images.tag | default .Chart.AppVersion }}*/}}
73-
image: registry.digitalocean.com/jjk3-sandbox/adservice:latest
72+
image: {{ .Values.images.repository }}/{{ .Values.adService.name }}:{{ .Values.images.tag | default .Chart.AppVersion }}
7473
ports:
7574
- containerPort: 9555
7675
env:

src/adservice/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ From `src/adservice/`, run:
2525
```
2626
docker build ./
2727
```
28+

src/cartservice/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11

2+

src/checkoutservice/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ Run the following command to restore dependencies to `vendor/` directory:
44

55
dep ensure --vendor-only
66

7+

src/currencyservice/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

src/emailservice/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

src/frontend/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ Run the following command to restore dependencies to `vendor/` directory:
44

55
dep ensure --vendor-only
66

7+

src/loadgenerator/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

src/paymentservice/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)