forked from DescartesResearch/TeaStore
-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (85 loc) · 2.31 KB
/
master.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
name: Build & deploy on master
on:
push:
branches:
- master
jobs:
build-and-push-docker:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v2
with:
ref: master
-
uses: sormuras/download-jdk@v1
with:
feature: 17
-
uses: actions/setup-java@v2
with:
java-version: ${{ env.JDK_VERSION }}
distribution: jdkfile
jdkFile: ${{ env.JDK_FILE }}
-
run: mvn clean install
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push database
uses: docker/build-push-action@v2
with:
context: ./database
file: ./database/Dockerfile
push: true
tags: tvsjsdock/teastore-db:v2
-
name: Build and push persistence
uses: docker/build-push-action@v2
with:
context: ./services/persistence
file: ./services/persistence/Dockerfile
push: true
tags: tvsjsdock/teastore-persistence:v2
-
name: Build and push auth
uses: docker/build-push-action@v2
with:
context: ./services/auth
file: ./services/auth/Dockerfile
push: true
tags: tvsjsdock/teastore-auth:v2
-
name: Build and push web
uses: docker/build-push-action@v2
with:
context: ./services/web
file: ./services/web/Dockerfile
push: true
tags: tvsjsdock/teastore-web:v2
-
name: Build and push image
uses: docker/build-push-action@v2
with:
context: ./services/image
file: ./services/image/Dockerfile
push: true
tags: tvsjsdock/teastore-image:v2
-
name: Build and push recommender
uses: docker/build-push-action@v2
with:
context: ./services/recommender
file: ./services/recommender/Dockerfile
push: true
tags: tvsjsdock/teastore-recommender:v2