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