-
Notifications
You must be signed in to change notification settings - Fork 1
86 lines (74 loc) · 2.95 KB
/
maven.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: Java CI with Maven
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
## JDK Settings
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
## create properties
- name: make application-gateway.properties
run: |
cd ./devsta-gateway/src/main/resources
touch ./application-gateway.properties
echo uri.user-service = ${{ secrets.BACKEND_IP }}:9090 >> ./application-gateway.properties
echo uri.post-service = ${{ secrets.BACKEND_IP }}:9091 >> ./application-gateway.properties
echo uri.meetup-service = ${{ secrets.BACKEND_IP }}:9092 >> ./application-gateway.properties
echo jwt.secret = ${{ secrets.JWT_SECRET }} >> ./application-gateway.properties
cat ./application-gateway.properties
shell: bash
- name: make application-meetup.properties
run: |
cd ./devsta-meetup/src/main/resources
touch ./application-meetup.properties
echo "url.gateway = ${{ secrets.BACKEND_IP }}:9999/api/meetup" >> ./application-meetup.properties
echo "spring.data.mongodb.uri = ${{ secrets.DB_URI }}" >> ./application-meetup.properties
cat ./application-meetup.properties
shell: bash
- name: make application-posts.properties
run: |
cd ./devsta-posts/src/main/resources
touch ./application-posts.properties
echo "url.gateway = ${{ secrets.BACKEND_IP }}:9999/api/posts" >> ./application-posts.properties
echo "spring.data.mongodb.uri = ${{ secrets.DB_URI }}" >> ./application-posts.properties
cat ./application-posts.properties
shell: bash
- name: make application-users.properties
run: |
cd ./devsta-users/src/main/resources
touch ./application-users.properties
echo "spring.data.mongodb.uri = ${{ secrets.DB_URI }}" >> ./application-users.properties
cat ./application-users.properties
shell: bash
- name: Build devsta-gateway
run: |
cat devsta-gateway/src/main/resources/application-gateway.properties
mvn -B package --file devsta-gateway/pom.xml
# env:
# USER_NAME: ${{ secrets.USER_NAME }}
# ACCESS_TOKEN: ${{ secrets.TOKEN }}
- name: Build devsta-meetup
run: mvn -B package --file devsta-meetup/pom.xml
# env:
# USER_NAME: ${{ secrets.USER_NAME }}
# ACCESS_TOKEN: ${{ secrets.TOKEN }}
- name: Build devsta-posts
run: mvn -B package --file devsta-posts/pom.xml
# env:
# USER_NAME: ${{ secrets.USER_NAME }}
# ACCESS_TOKEN: ${{ secrets.TOKEN }}
- name: Build devsta-users
run: mvn -B package --file devsta-users/pom.xml
# env:
# USER_NAME: ${{ secrets.USER_NAME }}
# ACCESS_TOKEN: ${{ secrets.TOKEN }}