File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 11services :
22 product-service :
33 container_name : product
4+ # image: amigoscode/product-service:jibMaven
45 build :
56 context : .
67 dockerfile : Dockerfile
Original file line number Diff line number Diff line change 2929 </scm >
3030 <properties >
3131 <java .version>21</java .version>
32+ <docker .username>amigoscode</docker .username>
33+ <docker .image.name>product-service</docker .image.name>
34+ <docker .image.tag/>
3235 </properties >
3336 <dependencies >
3437 <dependency >
7578 <groupId >org.springframework.boot</groupId >
7679 <artifactId >spring-boot-maven-plugin</artifactId >
7780 </plugin >
81+ <plugin >
82+ <groupId >com.google.cloud.tools</groupId >
83+ <artifactId >jib-maven-plugin</artifactId >
84+ <version >3.3.2</version >
85+ <configuration >
86+ <from >
87+ <image >eclipse-temurin:21-jre</image >
88+ <platforms >
89+ <platrom >
90+ <architecture >amd64</architecture >
91+ <os >linux</os >
92+ </platrom >
93+ <platrom >
94+ <architecture >arm64</architecture >
95+ <os >linux</os >
96+ </platrom >
97+ </platforms >
98+ </from >
99+ <to >
100+ <image >docker.io/${docker.username} /${docker.image.name} :${docker.image.tag} </image >
101+ <tags >
102+ <tag >latest</tag >
103+ </tags >
104+ </to >
105+ </configuration >
106+ </plugin >
78107 </plugins >
79108 </build >
80109
You can’t perform that action at this time.
0 commit comments