File tree Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 9
9
- pom.xml
10
10
- modules/openapi-generator-online/pom.xml
11
11
- modules/openapi-generator-online/Dockerfile
12
+ - modules/openapi-generator-cli/pom.xml
13
+ - modules/openapi-generator-cli/Dockerfile
12
14
pull_request :
13
15
paths :
14
16
- Dockerfile
15
17
- run-in-docker.sh
16
18
- pom.xml
17
19
- modules/openapi-generator-online/pom.xml
18
20
- modules/openapi-generator-online/Dockerfile
21
+ - modules/openapi-generator-cli/pom.xml
22
+ - modules/openapi-generator-cli/Dockerfile
19
23
jobs :
20
24
build :
21
25
name : ' Build: Docker'
38
42
shell : bash
39
43
run : |
40
44
docker build modules/openapi-generator-online/ -t test
45
+ - name : Build and test modules/openapi-generator-cli
46
+ shell : bash
47
+ run : |
48
+ cp docker-entrypoint.sh ./modules/openapi-generator-cli
49
+ docker build modules/openapi-generator-cli/ -t cli-test
50
+ docker run --rm -v "${PWD}:/local" cli-test generate \
51
+ -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml \
52
+ -g go \
53
+ -o /local/out/go
Original file line number Diff line number Diff line change 1
- FROM openjdk:11.0 -jre-buster
1
+ FROM eclipse-temurin:17.0.9_9 -jre-focal
2
2
3
3
ADD target/openapi-generator-cli.jar /opt/openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar
4
4
Original file line number Diff line number Diff line change 9
9
<relativePath >../..</relativePath >
10
10
</parent >
11
11
<modelVersion >4.0.0</modelVersion >
12
-
13
12
<artifactId >openapi-generator-cli</artifactId >
14
13
<packaging >jar</packaging >
15
-
16
14
<name >openapi-generator (executable)</name >
17
-
18
15
<build >
19
16
<finalName >openapi-generator-cli</finalName >
20
17
<resources >
82
79
</plugin >
83
80
</plugins >
84
81
</build >
85
-
86
82
<profiles >
87
83
<profile >
88
84
<id >static-analysis</id >
107
103
</build >
108
104
</profile >
109
105
</profiles >
110
-
111
106
<dependencies >
112
-
113
107
<dependency >
114
108
<groupId >org.openapitools</groupId >
115
109
<artifactId >openapi-generator</artifactId >
155
149
<scope >test</scope >
156
150
</dependency >
157
151
</dependencies >
158
-
159
152
</project >
Original file line number Diff line number Diff line change 1
- FROM openjdk:11
1
+ FROM eclipse-temurin:17.0.9_9-jre-focal
2
2
3
3
WORKDIR /generator
4
4
You can’t perform that action at this time.
0 commit comments