</developers>\r
\r
<properties>\r
+ <maven.build.timestamp.format>yyyy.MM.dd'T'hh.mm.ss'Z'</maven.build.timestamp.format>\r
<maven.test.failure.ignore>true</maven.test.failure.ignore>\r
<project.swmVersion>1</project.swmVersion>\r
<project.innoVersion>1.0.0-SNAPSHOT</project.innoVersion>\r
<project.cadiVersion>1.0.0-SNAPSHOT</project.cadiVersion>\r
<dockerLocation>${basedir}/target/</dockerLocation>\r
- <docker.registry>nexus3.onap.org</docker.registry>\r
<distFilesRootDirPath>opt/app/aaf/${project.artifactId}/${project.version}</distFilesRootDirPath>\r
<sonar.language>java</sonar.language>\r
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>\r
<releaseNexusPath>/content/repositories/releases/</releaseNexusPath>\r
<stagingNexusPath>/content/repositories/staging/</stagingNexusPath>\r
<sitePath>/content/sites/site/org/onap/aaf/authz/${project.artifactId}/${project.version}</sitePath>\r
- <skip.docker.build>false</skip.docker.build>\r
- <skip.docker.tag>false</skip.docker.tag>\r
- <skip.docker.push>false</skip.docker.push>\r
+ \r
+ <docker.push.registry>localhost:5000</docker.push.registry>\r
+ <skip.docker.build>true</skip.docker.build>\r
+ <skip.docker.push>true</skip.docker.push>\r
+ <skip.staging.artifacts>false</skip.staging.artifacts>\r
</properties>\r
\r
\r
</dependency> \r
</dependencies>\r
\r
- <profiles>\r
- <profile>\r
- \r
+\r
<build>\r
<plugins>\r
+ \r
\r
- <plugin>\r
- <groupId>com.spotify</groupId>\r
- <artifactId>docker-maven-plugin</artifactId>\r
- <version>0.4.11</version>\r
- <configuration>\r
- <imageName>onap/aaf/authz-service</imageName>\r
- <dockerDirectory>${dockerLocation}</dockerDirectory>\r
- <serverId>docker-hub</serverId>\r
- <imageTags>\r
- <imageTag>${project.version}</imageTag>\r
- <imageTag>latest</imageTag>\r
- </imageTags>\r
- <forceTags>true</forceTags>\r
- <resources>\r
- <resource>\r
- <targetPath>/</targetPath>\r
- <directory>/${basedir}/target/opt</directory>\r
- <filtering>true</filtering>\r
- <includes>\r
- <include>**/*</include>\r
- </includes>\r
- </resource>\r
- </resources> \r
- </configuration>\r
- <executions>\r
+<plugin>\r
+ <groupId>com.spotify</groupId>\r
+ <artifactId>docker-maven-plugin</artifactId>\r
+ <version>1.0.0</version>\r
+ <configuration>\r
+ <imageName>onap/aaf/authz-service</imageName>\r
+ <dockerDirectory>${dockerLocation}</dockerDirectory>\r
+ <serverId>docker-hub</serverId>\r
+ <imageTags>\r
+ <imageTag>latest</imageTag>\r
+ <imageTag>${project.docker.latesttagtimestamp.version}</imageTag>\r
+ <imageTag>${project.docker.latesttag.version}</imageTag>\r
+ </imageTags>\r
+ <forceTags>true</forceTags>\r
+ <resources>\r
+ <resource>\r
+ <targetPath>/</targetPath>\r
+ <directory>/${basedir}/target/opt</directory>\r
+ <filtering>true</filtering>\r
+ <includes>\r
+ <include>**/*</include>\r
+ </includes>\r
+ </resource>\r
+ </resources> \r
+ </configuration>\r
+ <executions>\r
<execution>\r
<id>build-image</id>\r
<phase>package</phase>\r
</buildArgs>\r
</configuration>\r
</execution>\r
- <execution>\r
- <id>docker</id>\r
+\r
+ <execution>\r
+ <id>tag-image-latest-timestamp</id>\r
+ <phase>package</phase>\r
+ <goals>\r
+ <goal>tag</goal>\r
+ </goals>\r
+ <configuration>\r
+ <image>onap/aaf/authz-service</image>\r
+ <newName>${docker.push.registry}/onap/aaf/authz-service:${project.docker.latesttagtimestamp.version}</newName>\r
+ <skipDockerTag>${skip.docker.push}</skipDockerTag>\r
+ </configuration>\r
+ </execution>\r
+ <execution>\r
+ <id>push-image-latest-timestamp</id>\r
<phase>deploy</phase>\r
<goals>\r
<goal>push</goal>\r
</goals>\r
<configuration>\r
- <imageName>onap/aaf/authz-service</imageName>\r
+ <imageName>${docker.push.registry}/onap/aaf/authz-service:${project.docker.latesttagtimestamp.version}</imageName>\r
<skipDockerPush>${skip.docker.push}</skipDockerPush>\r
</configuration>\r
</execution>\r
- \r
- </executions>\r
- </plugin>\r
- \r
+ <execution>\r
+ <id>tag-image-latest</id>\r
+ <phase>package</phase>\r
+ <goals>\r
+ <goal>tag</goal>\r
+ </goals>\r
+ <configuration>\r
+ <image>onap/aaf/authz-service</image>\r
+ <newName>${docker.push.registry}/onap/aaf/authz-service:${project.docker.latesttag.version}</newName>\r
+ <skipDockerTag>${skip.docker.push}</skipDockerTag>\r
+ </configuration>\r
+ </execution>\r
+ <execution>\r
+ <id>push-image-latest</id>\r
+ <phase>deploy</phase>\r
+ <goals>\r
+ <goal>push</goal>\r
+ </goals>\r
+ <configuration>\r
+ <imageName>${docker.push.registry}/onap/aaf/authz-service:${project.docker.latesttag.version}</imageName>\r
+ <skipDockerPush>${skip.docker.push}</skipDockerPush>\r
+ </configuration>\r
+ </execution>\r
+ <execution>\r
+ <id>tag-image</id>\r
+ <phase>package</phase>\r
+ <goals>\r
+ <goal>tag</goal>\r
+ </goals>\r
+ <configuration>\r
+ <image>onap/aaf/authz-service</image>\r
+ <newName>${docker.push.registry}/onap/aaf/authz-service:latest</newName>\r
+ <skipDockerTag>${skip.docker.push}</skipDockerTag>\r
+ </configuration>\r
+ </execution>\r
+ <execution>\r
+ <id>push-image</id>\r
+ <phase>deploy</phase>\r
+ <goals>\r
+ <goal>push</goal>\r
+ </goals>\r
+ <configuration>\r
+ <imageName>${docker.push.registry}/onap/aaf/authz-service:latest</imageName>\r
+ <skipDockerPush>${skip.docker.push}</skipDockerPush>\r
+ </configuration>\r
+ </execution>\r
+ </executions>\r
+ </plugin>\r
+\r
+\r
+\r
+\r
+ \r
\r
<plugin>\r
<artifactId>maven-resources-plugin</artifactId>\r
</plugins>\r
\r
</build>\r
- </profile>\r
- </profiles>\r
+\r
\r
<distributionManagement>\r
<repository>\r
<url>dav:${nexusproxy}${sitePath}</url>\r
</site>\r
</distributionManagement>\r
-\r
+ <profiles>\r
+ <profile>\r
+ <id>docker</id>\r
+ <properties>\r
+ <skip.staging.artifacts>true</skip.staging.artifacts>\r
+ <skip.docker.build>false</skip.docker.build>\r
+ <skip.docker.tag>false</skip.docker.tag>\r
+ <skip.docker.push>false</skip.docker.push>\r
+ </properties>\r
+ </profile>\r
+ </profiles>\r
</project>\r