This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
81 lines (75 loc) · 3.18 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<parent>
<groupId>com.pro-crafting</groupId>
<artifactId>pc-parent</artifactId>
<version>2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.pro-crafting.tools</groupId>
<artifactId>images_jenkins</artifactId>
<version>1.1.9-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<!-- Settings -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<docker.repository>postremus</docker.repository>
<docker.published.port>8080</docker.published.port>
<docker.repository>postremus</docker.repository>
<!-- Plugin Versions -->
<version.docker-maven-plugin>0.31.0</version.docker-maven-plugin>
</properties>
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<configuration>
<imagePullPolicy>always</imagePullPolicy>
<images>
<image>
<name>${docker.repository}/${project.artifactId}</name>
<build>
<dockerFileDir>${project.basedir}/src/main/docker</dockerFileDir>
<tags>
<tag>latest</tag>
<tag>${project.version}</tag>
</tags>
</build>
</image>
</images>
</configuration>
<executions>
<execution>
<id>build-phase</id>
<phase>install</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
<execution>
<id>push-phase</id>
<phase>deploy</phase>
<goals>
<goal>push</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- Deploy is not really necessary, since we are deploying our only artifact to dockerhub -->
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<configuration>
<skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
</configuration>
</plugin>
</plugins>
</build>
<scm>
<connection>scm:git:[email protected]:pro-crafting/images_jenkins.git</connection>
<url>https://github.com/pro-crafting/images_jenkins</url>
<developerConnection>scm:git:[email protected]:pro-crafting/images_jenkins.git</developerConnection>
<tag>HEAD</tag>
</scm>
</project>