[ BAEL-3751 ]: Replace spotify docker plugin with JIB
This commit is contained in:
		
							parent
							
								
									d5d6236ae1
								
							
						
					
					
						commit
						f8edc08ca6
					
				| @ -10,7 +10,7 @@ before_install: | |||||||
| 
 | 
 | ||||||
| script: | script: | ||||||
|   - ./mvnw clean org.jacoco:jacoco-maven-plugin:prepare-agent install |   - ./mvnw clean org.jacoco:jacoco-maven-plugin:prepare-agent install | ||||||
|   - ./mvnw heroku:deploy -P deploy-heroku,deploy-docker |   - ./mvnw heroku:deploy jib:build -P deploy-heroku,deploy-docker | ||||||
| 
 | 
 | ||||||
| after_success: | after_success: | ||||||
|   - bash <(curl -s https://codecov.io/bash) |   - bash <(curl -s https://codecov.io/bash) | ||||||
| @ -86,25 +86,17 @@ | |||||||
|       <build> |       <build> | ||||||
|         <plugins> |         <plugins> | ||||||
|           <plugin> |           <plugin> | ||||||
|             <groupId>com.spotify</groupId> |             <groupId>com.google.cloud.tools</groupId> | ||||||
|             <artifactId>dockerfile-maven-plugin</artifactId> |             <artifactId>jib-maven-plugin</artifactId> | ||||||
|             <version>1.4.13</version> |             <version>2.2.0</version> | ||||||
|             <executions> |  | ||||||
|               <execution> |  | ||||||
|                 <id>default</id> |  | ||||||
|                 <goals> |  | ||||||
|                   <goal>build</goal> |  | ||||||
|                   <goal>push</goal> |  | ||||||
|                 </goals> |  | ||||||
|               </execution> |  | ||||||
|             </executions> |  | ||||||
|             <configuration> |             <configuration> | ||||||
|               <repository>lukaszrys/spring-boot-ci-cd</repository> |               <to> | ||||||
|  |                 <image>registry.hub.docker.com/baeldungjib/baeldung-ci-cd-process</image> | ||||||
|  |                 <tags> | ||||||
|                   <tag>${project.version}</tag> |                   <tag>${project.version}</tag> | ||||||
|                   <tag>latest</tag> |                   <tag>latest</tag> | ||||||
|               <buildArgs> |                 </tags> | ||||||
|                 <JAR_FILE>${project.build.finalName}.jar</JAR_FILE> |               </to> | ||||||
|               </buildArgs> |  | ||||||
|             </configuration> |             </configuration> | ||||||
|           </plugin> |           </plugin> | ||||||
|         </plugins> |         </plugins> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user