Skip to content

Commit

Permalink
Build docker images always
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo committed Nov 4, 2024
1 parent df5e55e commit f5379c8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 45 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
with:
distribution: 'temurin'
java-version: 21
- name: Maven Install Dependencies
run: ./mvnw install -B -V -DskipTests -Dair.check.skip-all -P docker-images
- name: Maven Test
run: ./mvnw install -B
- name: Integration test
Expand Down
76 changes: 33 additions & 43 deletions benchto-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -379,49 +379,39 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.45.1</version>
<configuration>
<images>
<image>
<name>${docker.image.prefix}/${project.artifactId}</name>
<build>
<contextDir>${project.basedir}/src/main/docker</contextDir>
<buildx>
<platforms>
<platform>linux/amd64</platform>
<platform>linux/arm64</platform>
</platforms>
</buildx>
<assembly>
<descriptorRef>artifact</descriptorRef>
</assembly>
</build>
</image>
</images>
</configuration>
<executions>
<execution>
<id>build-image</id>
<goals>
<goal>build</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>docker-images</id>
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.45.1</version>
<configuration>
<images>
<image>
<name>${docker.image.prefix}/${project.artifactId}</name>
<build>
<contextDir>${project.basedir}/src/main/docker</contextDir>
<buildx>
<platforms>
<platform>linux/amd64</platform>
<platform>linux/arm64</platform>
</platforms>
</buildx>
<assembly>
<descriptorRef>artifact</descriptorRef>
</assembly>
</build>
</image>
</images>
</configuration>
<executions>
<execution>
<id>build-image</id>
<goals>
<goal>build</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit f5379c8

Please sign in to comment.