File tree 2 files changed +49
-0
lines changed
2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change 25
25
</plugins >
26
26
</build >
27
27
28
+ <profiles >
29
+ <profile >
30
+ <id >build-docker-image</id >
31
+ <build >
32
+ <plugins >
33
+ <plugin >
34
+ <groupId >com.google.cloud.tools</groupId >
35
+ <artifactId >jib-maven-plugin</artifactId >
36
+ </plugin >
37
+ </plugins >
38
+ </build >
39
+ </profile >
40
+ </profiles >
41
+
28
42
<dependencies >
29
43
<dependency >
30
44
<groupId >org.springframework.cloud</groupId >
Original file line number Diff line number Diff line change 28
28
<spring .boot.maven.plugin.version>2.7.17</spring .boot.maven.plugin.version>
29
29
<spring .boot.dependencies.version>2.7.17</spring .boot.dependencies.version>
30
30
<spring-cloud .version>2021.0.8</spring-cloud .version>
31
+ <image >hrkarimi/${project.artifactId}:${project.version}</image >
31
32
</properties >
32
33
33
34
<dependencyManagement >
79
80
</execution >
80
81
</executions >
81
82
</plugin >
83
+ <plugin >
84
+ <groupId >com.google.cloud.tools</groupId >
85
+ <artifactId >jib-maven-plugin</artifactId >
86
+ <version >3.1.4</version >
87
+ <configuration >
88
+ <from >
89
+ <image >eclipse-temurin:17@sha256:2b47a8ea946ce1e5365a1562414ed576e378b7b670cadff3fb98ebecf2890cdc</image >
90
+ <platforms >
91
+ <platform >
92
+ <architecture >arm64</architecture >
93
+ <os >linux</os >
94
+ </platform >
95
+ <platform >
96
+ <architecture >amd64</architecture >
97
+ <os >linux</os >
98
+ </platform >
99
+ </platforms >
100
+ </from >
101
+ <to >
102
+ <tags >
103
+ <tag >latest</tag >
104
+ </tags >
105
+ </to >
106
+ </configuration >
107
+ <executions >
108
+ <execution >
109
+ <phase >package</phase >
110
+ <goals >
111
+ <goal >build</goal >
112
+ </goals >
113
+ </execution >
114
+ </executions >
115
+ </plugin >
82
116
</plugins >
83
117
</pluginManagement >
118
+
84
119
<plugins >
85
120
<plugin >
86
121
<groupId >org.apache.maven.plugins</groupId >
You can’t perform that action at this time.
0 commit comments