diff options
author | Nicholas Soteropoulos <ns299g@us.att.com> | 2020-09-29 13:44:27 -0400 |
---|---|---|
committer | Nicholas Soteropoulos <ns299g@us.att.com> | 2020-10-01 12:04:57 -0400 |
commit | cd2b9a392a6a77dd40703a861999144ee0b3413c (patch) | |
tree | f755f1155bf9763a919e4745a3659df1327bf551 /mod2/ui/pom.xml | |
parent | 457685063fd4b960441e482cc8b88fa8c972a7d2 (diff) |
updating docker repository to onap nexus
Change-Id: I542aa09dde0dbcd54b69e2bfbce593bfcfb849c6
Issue-ID: DCAEGEN2-2317
Signed-off-by: Nicholas Soteropoulos <ns299g@us.att.com>
Diffstat (limited to 'mod2/ui/pom.xml')
-rw-r--r-- | mod2/ui/pom.xml | 48 |
1 files changed, 34 insertions, 14 deletions
diff --git a/mod2/ui/pom.xml b/mod2/ui/pom.xml index 50122de..b2e887e 100644 --- a/mod2/ui/pom.xml +++ b/mod2/ui/pom.xml @@ -32,40 +32,60 @@ <artifactId>ui</artifactId> <version>1.0.0-SNAPSHOT</version> + <properties> + <dockerfile-maven-plugin.version>1.4.10</dockerfile-maven-plugin.version> + <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name> + </properties> + <build> <plugins> <plugin> - <groupId>com.github.eirslett</groupId> - <artifactId>frontend-maven-plugin</artifactId> - <version>1.7.6</version> + <groupId>com.spotify</groupId> + <artifactId>dockerfile-maven-plugin</artifactId> + <version>${dockerfile-maven-plugin.version}</version> <configuration> - <workingDirectory>./</workingDirectory> - <nodeVersion>v12.16.1</nodeVersion> - <npmVersion>6.13.4</npmVersion> + <contextDirectory>${project.basedir}</contextDirectory> + <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository> + <buildArgs> + <PROJECT_BUILD_DIR_NAME>target</PROJECT_BUILD_DIR_NAME> + <FINAL_JAR>${project.build.finalName}.jar</FINAL_JAR> + </buildArgs> </configuration> <executions> <execution> - <id>install node and npm</id> + <id>build-image</id> + <phase>package</phase> <goals> - <goal>install-node-and-npm</goal> + <goal>build</goal> </goals> </execution> <execution> - <id>npm install</id> + <id>tag-and-push-image-latest</id> + <phase>package</phase> <goals> - <goal>npm</goal> + <goal>tag</goal> + <goal>push</goal> </goals> + <configuration> + <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository> + <tag>latest</tag> + <useMavenSettingsForAuth>true</useMavenSettingsForAuth> + </configuration> </execution> <execution> - <id>npm run build</id> + <id>tag-and-push-image-with-version</id> + <phase>package</phase> <goals> - <goal>npm</goal> + <goal>tag</goal> + <goal>push</goal> </goals> <configuration> - <arguments>run build</arguments> + <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository> + <tag>${project.version}</tag> + <useMavenSettingsForAuth>true</useMavenSettingsForAuth> </configuration> </execution> - </executions> + </executions> </plugin> </plugins> </build> |