diff options
Diffstat (limited to 'vnfmarket-be/deployment/docker/docker-refrepo')
-rw-r--r-- | vnfmarket-be/deployment/docker/docker-refrepo/pom.xml | 39 |
1 files changed, 36 insertions, 3 deletions
diff --git a/vnfmarket-be/deployment/docker/docker-refrepo/pom.xml b/vnfmarket-be/deployment/docker/docker-refrepo/pom.xml index 9d8ed8b4..0378751a 100644 --- a/vnfmarket-be/deployment/docker/docker-refrepo/pom.xml +++ b/vnfmarket-be/deployment/docker/docker-refrepo/pom.xml @@ -41,6 +41,7 @@ <docker.skip>false</docker.skip> <docker.noCache>true</docker.noCache> <docker.skip.build>false</docker.skip.build> + <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily> </properties> <build> @@ -52,8 +53,13 @@ <configuration> <verbose>true</verbose> <imageName>onap/vnfsdk/refrepo</imageName> + <imageTags> + <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag> + <imageTag>${project.version}</imageTag> + <imageTag>latest</imageTag> + </imageTags> <noCache>${docker.noCache}</noCache> - <serverId>docker-hub</serverId> + <serverId>${onap.nexus.dockerregistry.daily}</serverId> <dockerDirectory>${basedir}/src/main/docker</dockerDirectory> <resources> <resource> @@ -106,8 +112,35 @@ </executions> </plugin> - - </plugins> </build> + <profiles> + <profile> + <id>docker</id> + <build> + <defaultGoal>package</defaultGoal> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <executions> + <execution> + <phase>package</phase> + <goals> + <goal>exec</goal> + </goals> + <configuration> + <executable>mvn</executable> + <arguments> + <argument>package</argument> + <argument>docker:build</argument> + </arguments> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> |