diff options
author | Singal, Kapil (ks220y) <ks220y@att.com> | 2020-12-17 14:37:06 -0500 |
---|---|---|
committer | Singal, Kapil (ks220y) <ks220y@att.com> | 2020-12-18 12:13:29 -0500 |
commit | b6e7d96acfa2459c7a8c8f9fbdefcfacaf62e9f2 (patch) | |
tree | 86a814c9117a651cd7146b3f6f9d74b10c582e56 /ubuntu/pom.xml | |
parent | 110bb110a48b98a40dad33e80071e0a21386f11d (diff) |
1) Adding docker.skip.push tag so that it can be used to skip docker push during verify job
2) Upgrading docker-maven-plugin to 0.34.0 and replacing dockerFileDir to contextDir
3) Refactoring execution section of docker-maven-plugin
4) Refactoring POM Names
5) Running mvn tidy:pom
Issue-ID: CCSDK-3057
Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com>
Change-Id: I19b9e231e5288e1372a9b3ac89d263bbb2209186
Diffstat (limited to 'ubuntu/pom.xml')
-rw-r--r-- | ubuntu/pom.xml | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/ubuntu/pom.xml b/ubuntu/pom.xml index 22ee2eee..63f64335 100644 --- a/ubuntu/pom.xml +++ b/ubuntu/pom.xml @@ -9,7 +9,6 @@ </parent> <artifactId>distribution-ubuntu</artifactId> - <version>1.1.1-SNAPSHOT</version> <packaging>pom</packaging> <name>ccsdk-distribution :: ubuntu</name> @@ -20,17 +19,14 @@ <properties> <image.name>onap/ccsdk-ubuntu-image</image.name> - <ccsdk.project.version>${project.version}</ccsdk.project.version> - <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp> - <ccsdk.distribution.version>${project.version}</ccsdk.distribution.version> </properties> <build> <plugins> - <plugin> <groupId>org.codehaus.groovy.maven</groupId> <artifactId>gmaven-plugin</artifactId> + <version>1.0</version> <executions> <execution> <phase>validate</phase> @@ -80,16 +76,15 @@ <plugin> <groupId>io.fabric8</groupId> <artifactId>docker-maven-plugin</artifactId> - <version>0.28.0</version> + <version>0.34.0</version> <inherited>false</inherited> <configuration> - <images> <image> <name>${image.name}</name> <build> <cleanup>try</cleanup> - <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> + <contextDir>${basedir}/target/docker-stage</contextDir> <dockerFile>Dockerfile</dockerFile> <tags> <tag>${project.docker.latestminortag.version}</tag> @@ -99,19 +94,12 @@ </build> </image> </images> + <verbose>${docker.verbose}</verbose> + <skipPush>${docker.skip.push}</skipPush> </configuration> <executions> <execution> - <id>generate-images</id> - <phase>generate-sources</phase> - <goals> - <goal>build</goal> - </goals> - </execution> - - <execution> - <id>push-images</id> - <phase>deploy</phase> + <id>build-push-images</id> <goals> <goal>build</goal> <goal>push</goal> @@ -119,7 +107,6 @@ </execution> </executions> </plugin> - </plugins> </build> </profile> |