Skip to content

Commit

Permalink
prod(operator): build quarkus app archive
Browse files Browse the repository at this point in the history
  • Loading branch information
jsenko committed Nov 26, 2024
1 parent ddff0b4 commit a438a12
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
25 changes: 25 additions & 0 deletions operator/controller/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,31 @@
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assembly</id>
<goals>
<goal>single</goal>
</goals>
<phase>package</phase>
<configuration>
<finalName>${project.artifactId}-${project.version}</finalName>
<attach>true</attach>
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors>
<archiverConfig>
<defaultDirectoryMode>0755</defaultDirectoryMode>
</archiverConfig>
<tarLongFileMode>${tar.long.file.mode}</tarLongFileMode>
</configuration>
</execution>
</executions>
</plugin>

</plugins>

</build>
Expand Down
16 changes: 16 additions & 0 deletions operator/controller/src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>quarkus-app</id>
<formats>
<format>zip</format>
<format>tar.gz</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>target/quarkus-app</directory>
<outputDirectory>/</outputDirectory>
<filtered>false</filtered>
</fileSet>
</fileSets>
</assembly>

0 comments on commit a438a12

Please sign in to comment.