|
|
@@ -41,16 +41,6 @@
|
|
|
<docker.registry.name>saas</docker.registry.name>
|
|
|
</properties>
|
|
|
|
|
|
- <profiles>
|
|
|
- <profile>
|
|
|
- <!-- mvn deploy -P release -->
|
|
|
- <id>release</id>
|
|
|
- <properties>
|
|
|
- <project.release.version>1.0.0</project.release.version>
|
|
|
- </properties>
|
|
|
- </profile>
|
|
|
- </profiles>
|
|
|
-
|
|
|
<repositories>
|
|
|
<repository>
|
|
|
<id>spring-milestones</id>
|
|
|
@@ -71,13 +61,13 @@
|
|
|
|
|
|
<distributionManagement>
|
|
|
<repository>
|
|
|
- <id>central</id>
|
|
|
- <name>central</name>
|
|
|
+ <id>platform-release</id>
|
|
|
+ <name>platform-release</name>
|
|
|
<url>http://10.10.100.21:8081/artifactory/libs-release-local</url>
|
|
|
</repository>
|
|
|
<snapshotRepository>
|
|
|
- <id>snapshots</id>
|
|
|
- <name>snapshots</name>
|
|
|
+ <id>platform-snapshots</id>
|
|
|
+ <name>platform-snapshots</name>
|
|
|
<url>http://10.10.100.21:8081/artifactory/libs-snapshot-local</url>
|
|
|
</snapshotRepository>
|
|
|
</distributionManagement>
|
|
|
@@ -322,20 +312,65 @@
|
|
|
</resource>
|
|
|
</resources>
|
|
|
</configuration>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <id>deploy-image</id>
|
|
|
- <phase>deploy</phase>
|
|
|
- <goals>
|
|
|
- <goal>build</goal>
|
|
|
- <goal>tag</goal>
|
|
|
- <goal>push</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
</plugin>
|
|
|
<!-- Docker maven plugin -->
|
|
|
</plugins>
|
|
|
</pluginManagement>
|
|
|
</build>
|
|
|
+
|
|
|
+ <profiles>
|
|
|
+ <profile>
|
|
|
+ <!-- mvn deploy -P release -->
|
|
|
+ <id>release</id>
|
|
|
+ <properties>
|
|
|
+ <project.release.version>1.0.0</project.release.version>
|
|
|
+ </properties>
|
|
|
+ </profile>
|
|
|
+ <profile>
|
|
|
+ <!-- mvn deploy -P docker -->
|
|
|
+ <id>docker</id>
|
|
|
+ <build>
|
|
|
+ <pluginManagement>
|
|
|
+ <plugins>
|
|
|
+ <!-- Docker maven plugin -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>com.spotify</groupId>
|
|
|
+ <artifactId>docker-maven-plugin</artifactId>
|
|
|
+ <version>1.0.0</version>
|
|
|
+ <configuration>
|
|
|
+ <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
|
|
|
+ <registryUrl>${docker.repository}</registryUrl>
|
|
|
+ <pushImage>true</pushImage>
|
|
|
+ <imageName>
|
|
|
+ ${docker.repository}/${docker.registry.name}/${project.artifactId}:${project.version}
|
|
|
+ </imageName>
|
|
|
+ <imageTags>
|
|
|
+ <imageTag>latest</imageTag>
|
|
|
+ </imageTags>
|
|
|
+ <resources>
|
|
|
+ <resource>
|
|
|
+ <targetPath>/</targetPath>
|
|
|
+ <directory>${project.build.directory}</directory>
|
|
|
+ <include>${project.build.finalName}.jar</include>
|
|
|
+ </resource>
|
|
|
+ </resources>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>build-image</id>
|
|
|
+ <phase>install</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>build</goal>
|
|
|
+ <goal>tag</goal>
|
|
|
+ <goal>push</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ <!-- Docker maven plugin -->
|
|
|
+ </plugins>
|
|
|
+ </pluginManagement>
|
|
|
+ </build>
|
|
|
+ </profile>
|
|
|
+ </profiles>
|
|
|
</project>
|