File tree Expand file tree Collapse file tree 2 files changed +49
-0
lines changed
Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change 2525 </plugins >
2626 </build >
2727
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+
2842 <dependencies >
2943 <dependency >
3044 <groupId >org.springframework.cloud</groupId >
Original file line number Diff line number Diff line change 2828 <spring .boot.maven.plugin.version>2.7.17</spring .boot.maven.plugin.version>
2929 <spring .boot.dependencies.version>2.7.17</spring .boot.dependencies.version>
3030 <spring-cloud .version>2021.0.8</spring-cloud .version>
31+ <image >hrkarimi/${project.artifactId}:${project.version}</image >
3132 </properties >
3233
3334 <dependencyManagement >
7980 </execution >
8081 </executions >
8182 </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 >
82116 </plugins >
83117 </pluginManagement >
118+
84119 <plugins >
85120 <plugin >
86121 <groupId >org.apache.maven.plugins</groupId >
You can’t perform that action at this time.
0 commit comments