diff options
Diffstat (limited to 'dcae-analytics/dcae-analytics-tca-web/pom.xml')
-rw-r--r-- | dcae-analytics/dcae-analytics-tca-web/pom.xml | 41 |
1 files changed, 13 insertions, 28 deletions
diff --git a/dcae-analytics/dcae-analytics-tca-web/pom.xml b/dcae-analytics/dcae-analytics-tca-web/pom.xml index 2e1195d..6959bec 100644 --- a/dcae-analytics/dcae-analytics-tca-web/pom.xml +++ b/dcae-analytics/dcae-analytics-tca-web/pom.xml @@ -116,14 +116,6 @@ <resource> <directory>${project.build.directory}/git</directory> </resource> - <resource> - <directory>docker</directory> - <includes> - <include>Dockerfile</include> - </includes> - <targetPath>${project.basedir}</targetPath> - <filtering>true</filtering> - </resource> </resources> <plugins> @@ -141,27 +133,20 @@ <artifactId>docker-maven-plugin</artifactId> <configuration> <skipDocker>false</skipDocker> - <repository>${docker.repository}/onap/${project.groupId}.${project.artifactId}</repository> - <tag>${project.version}</tag> + <imageName>${docker.repository}/onap/${project.groupId}.${project.artifactId}</imageName> + <dockerDirectory>${project.basedir}</dockerDirectory> + <resources> + <resource> + <targetPath>${project.basedir}</targetPath> + <directory>${project.build.directory}</directory> + <include>${project.build.finalName}.jar</include> + </resource> + </resources> + <imageTags> + <imageTag>${project.version}</imageTag> + <imageTag>latest</imageTag> + </imageTags> </configuration> -<!-- <artifactId>dockerfile-maven-plugin</artifactId> - <executions> - <execution> - <id>build-image</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> </plugins> </build> |