Skip to content

Commit 04233aa

Browse files
committed
feat: init multi maven modules
1 parent 8e7db77 commit 04233aa

File tree

425 files changed

+363
-289
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

425 files changed

+363
-289
lines changed

.github/workflows/docker-snapshot.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
jobs:
99
build-snapshot:
1010
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
working-directory: api
1114
outputs:
1215
branch: ${{ steps.extract_branch.outputs.branch }}
1316
steps:
@@ -33,20 +36,23 @@ jobs:
3336
uses: actions/upload-artifact@v4
3437
with:
3538
name: app-jar
36-
path: target/*.jar
39+
path: api/target/*.jar
3740

3841
docker:
3942
needs:
4043
- build-snapshot
4144
runs-on: ubuntu-latest
45+
defaults:
46+
run:
47+
working-directory: api
4248
steps:
4349
- uses: actions/checkout@v4
4450

4551
- name: Download uploaded jar
4652
uses: actions/download-artifact@v4
4753
with:
4854
name: app-jar
49-
path: target/
55+
path: api/target/
5056

5157
- name: Create docker version tag
5258
id: docker-version
@@ -64,4 +70,4 @@ jobs:
6470
password: ${{ secrets.DOCKERHUB_TOKEN }}
6571
default_branch: ${{ github.ref }}
6672
tags: "snapshot-${{ env.docker_tag }}"
67-
workdir: .
73+
workdir: api

.github/workflows/pr-validity.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
88
check-version:
99
runs-on: ubuntu-latest
10+
defaults:
11+
run:
12+
working-directory: api
1013
steps:
1114
- name: Checkout
1215
uses: actions/checkout@v4

.github/workflows/release-candidate.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
88
check-version:
99
runs-on: ubuntu-latest
10+
defaults:
11+
run:
12+
working-directory: api
1013
outputs:
1114
release-version: ${{ steps.version.outputs.version }}
1215
steps:
@@ -37,6 +40,9 @@ jobs:
3740
build-sources:
3841
needs: check-version
3942
runs-on: ubuntu-latest
43+
defaults:
44+
run:
45+
working-directory: api
4046
steps:
4147
- name: Extract branch name
4248
shell: bash
@@ -60,11 +66,14 @@ jobs:
6066
uses: actions/upload-artifact@v4
6167
with:
6268
name: app-jar
63-
path: target/*.jar
69+
path: api/target/*.jar
6470

6571
create-release-candidate:
6672
needs: [ check-version, build-sources ]
6773
runs-on: ubuntu-latest
74+
defaults:
75+
run:
76+
working-directory: api
6877
steps:
6978
- uses: actions/checkout@v4
7079
with:
@@ -97,14 +106,17 @@ jobs:
97106
docker:
98107
needs: [ check-version, build-sources ]
99108
runs-on: ubuntu-latest
109+
defaults:
110+
run:
111+
working-directory: api
100112
steps:
101113
- uses: actions/checkout@v4
102114

103115
- name: Download uploaded jar
104116
uses: actions/download-artifact@v4
105117
with:
106118
name: app-jar
107-
path: target/
119+
path: api/target/
108120

109121
- name: Publish to Docker Hub
110122
uses: elgohr/Publish-Docker-Github-Action@v5
@@ -113,4 +125,5 @@ jobs:
113125
username: ${{ secrets.DOCKERHUB_USERNAME }}
114126
password: ${{ secrets.DOCKERHUB_TOKEN }}
115127
default_branch: ${{ github.ref }}
116-
tags: ${{ needs.check-version.outputs.release-version }}
128+
tags: ${{ needs.check-version.outputs.release-version }}
129+
workdir: api

.github/workflows/release.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
88
check-version:
99
runs-on: ubuntu-latest
10+
defaults:
11+
run:
12+
working-directory: api
1013
outputs:
1114
release-version: ${{ steps.version-step.outputs.version }}
1215
steps:
@@ -48,6 +51,9 @@ jobs:
4851
build-sources:
4952
needs: check-version
5053
runs-on: ubuntu-latest
54+
defaults:
55+
run:
56+
working-directory: api
5157
steps:
5258
- name: Set up JDK 21
5359
uses: actions/setup-java@v4
@@ -63,11 +69,14 @@ jobs:
6369
uses: actions/upload-artifact@v4
6470
with:
6571
name: app-jar
66-
path: target/*.jar
72+
path: api/target/*.jar
6773

6874
create-release:
6975
needs: [ check-version, build-sources ]
7076
runs-on: ubuntu-latest
77+
defaults:
78+
run:
79+
working-directory: api
7180
steps:
7281
- uses: actions/checkout@v4
7382
with:
@@ -99,14 +108,17 @@ jobs:
99108
docker:
100109
needs: [ check-version, build-sources ]
101110
runs-on: ubuntu-latest
111+
defaults:
112+
run:
113+
working-directory: api
102114
steps:
103115
- uses: actions/checkout@v4
104116

105117
- name: Download uploaded jar
106118
uses: actions/download-artifact@v4
107119
with:
108120
name: app-jar
109-
path: target/
121+
path: api/target/
110122

111123
- name: Publish to Docker Hub
112124
uses: elgohr/Publish-Docker-Github-Action@v5
@@ -115,4 +127,5 @@ jobs:
115127
username: ${{ secrets.DOCKERHUB_USERNAME }}
116128
password: ${{ secrets.DOCKERHUB_TOKEN }}
117129
default_branch: ${{ github.ref }}
118-
tags: ${{ needs.check-version.outputs.release-version }}
130+
tags: ${{ needs.check-version.outputs.release-version }}
131+
workdir: api

.github/workflows/snapshot.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
jobs:
77
verify-branch:
88
runs-on: ubuntu-latest
9+
defaults:
10+
run:
11+
working-directory: api
912
steps:
1013
- name: Verify branch
1114
run: |
@@ -17,6 +20,9 @@ jobs:
1720
check-version:
1821
needs: verify-branch
1922
runs-on: ubuntu-latest
23+
defaults:
24+
run:
25+
working-directory: api
2026
outputs:
2127
release-version: ${{ steps.version.outputs.version }}
2228
steps:
@@ -52,6 +58,9 @@ jobs:
5258
build-sources:
5359
needs: check-version
5460
runs-on: ubuntu-latest
61+
defaults:
62+
run:
63+
working-directory: api
5564
steps:
5665
- uses: actions/checkout@v4
5766

@@ -68,19 +77,22 @@ jobs:
6877
uses: actions/upload-artifact@v4
6978
with:
7079
name: app-jar
71-
path: target/*.jar
80+
path: api/target/*.jar
7281

7382
publish-docker:
7483
needs: [ check-version, build-sources ]
7584
runs-on: ubuntu-latest
85+
defaults:
86+
run:
87+
working-directory: api
7688
steps:
7789
- uses: actions/checkout@v4
7890

7991
- name: Download uploaded jar
8092
uses: actions/download-artifact@v4
8193
with:
8294
name: app-jar
83-
path: target/
95+
path: api/target/
8496

8597
- name: Publish to Docker Hub
8698
uses: elgohr/Publish-Docker-Github-Action@v5
@@ -89,4 +101,5 @@ jobs:
89101
username: ${{ secrets.DOCKERHUB_USERNAME }}
90102
password: ${{ secrets.DOCKERHUB_TOKEN }}
91103
default_branch: ${{ github.ref }}
92-
tags: ${{ needs.check-version.outputs.release-version }}
104+
tags: ${{ needs.check-version.outputs.release-version }}
105+
workdir: api

.github/workflows/sonar.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
build:
1212
name: Build and analyze
1313
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
working-directory: api
1417
steps:
1518
- uses: actions/checkout@v4
1619
with:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)