Files
ubuntu-jdk-docker/pom.xml
2022-02-24 08:28:50 -05:00

55 lines
2.0 KiB
XML

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.inteligr8</groupId>
<artifactId>ubuntu-jdk</artifactId>
<version>20.04-11</version>
<name>Ubuntu/JDK Docker Image</name>
<packaging>pom</packaging>
<properties>
<ubuntu.version>20.04</ubuntu.version>
<java.majorVersion>11</java.majorVersion>
<image.name>inteligr8/${project.artifactId}</image.name>
<image.tag>${project.version}</image.tag>
<docker.push.registry>docker.inteligr8.com</docker.push.registry>
</properties>
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
<version>4.4.0</version>
<configuration>
<images>
<image>
<name>${image.name}:${image.tag}</name>
</image>
</images>
<contextDir>${basedir}</contextDir>
</configuration>
<executions>
<execution>
<id>docker-build</id>
<phase>package</phase>
<goals><goal>build</goal></goals>
</execution>
<execution>
<id>docker-push</id>
<phase>deploy</phase>
<goals><goal>push</goal></goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>