diff options
author | Serban Jora <jora@research.att.com> | 2017-10-17 17:11:36 -0400 |
---|---|---|
committer | Serban Jora <jora@research.att.com> | 2017-10-17 17:36:08 -0400 |
commit | 206f12d7cad289627468833c50a1aaaf4d0ba6ca (patch) | |
tree | 2dbe309fc569a662524e33722f075fdbe49fd137 /javatoscachecker | |
parent | 9bd6c31452862672e57b830b62b6181b72f4b1ff (diff) |
Separate docker action to own profile
Separate docker plugin tasks to a dedicated profile
Change-Id: Ie00f20c0a115263a4b0c6f0f9d132d45794381da
Issue-Id: MODELING-26
Signed-off-by: Serban Jora <jora@research.att.com>
Diffstat (limited to 'javatoscachecker')
-rw-r--r-- | javatoscachecker/pom.xml | 6 | ||||
-rw-r--r-- | javatoscachecker/service/pom.xml | 21 |
2 files changed, 27 insertions, 0 deletions
diff --git a/javatoscachecker/pom.xml b/javatoscachecker/pom.xml index 0c0d853..12dab08 100644 --- a/javatoscachecker/pom.xml +++ b/javatoscachecker/pom.xml @@ -119,4 +119,10 @@ </plugins> </build> + <profiles> + <profile> + <id>docker</id> + </profile> + </profiles> + </project> diff --git a/javatoscachecker/service/pom.xml b/javatoscachecker/service/pom.xml index 5d2ccb6..ab55a89 100644 --- a/javatoscachecker/service/pom.xml +++ b/javatoscachecker/service/pom.xml @@ -31,6 +31,9 @@ <docker.push.registry>${onap.nexus.dockerregistry.daily}</docker.push.registry> <docker.tag.version>${project.version}</docker.tag.version> <docker.tag.timestamp>${maven.build.timestamp}</docker.tag.timestamp> + <skip.docker.build>true</skip.docker.build> + <skip.docker.tag>true</skip.docker.tag> + <skip.docker.push>true</skip.docker.push> </properties> <build> @@ -167,6 +170,9 @@ <goals> <goal>build</goal> </goals> + <configuration> + <skipDockerBuild>${skip.docker.build}</skipDockerBuild> + </configuration> </execution> <execution> <id>tag-image-latest-timestamp</id> @@ -177,6 +183,7 @@ <configuration> <image>onap/modeling/javatoscachecker:${docker.tag.version}-${docker.tag.timestamp}</image> <newName>${docker.push.registry}/onap/modeling/javatoscachecker:${docker.tag.version}-${docker.tag.timestamp}</newName> + <skipDockerTag>${skip.docker.tag}</skipDockerTag> </configuration> </execution> <execution> @@ -187,6 +194,7 @@ </goals> <configuration> <imageName>${docker.push.registry}/onap/modeling/javatoscachecker:${docker.tag.version}-${docker.tag.timestamp}</imageName> + <skipDockerPush>${skip.docker.push}</skipDockerPush> </configuration> </execution> <execution> @@ -198,6 +206,7 @@ <configuration> <image>onap/modeling/javatoscachecker:latest</image> <newName>${docker.push.registry}/onap/modeling/javatoscachecker:latest</newName> + <skipDockerTag>${skip.docker.tag}</skipDockerTag> </configuration> </execution> <execution> @@ -208,6 +217,7 @@ </goals> <configuration> <imageName>${docker.push.registry}/onap/modeling/javatoscachecker:latest</imageName> + <skipDockerPush>${skip.docker.push}</skipDockerPush> </configuration> </execution> </executions> @@ -278,6 +288,17 @@ <version>1.0.0-SNAPSHOT</version> </dependency> </dependencies> + + <profiles> + <profile> + <id>docker</id> + <properties> + <skip.docker.build>false</skip.docker.build> + <skip.docker.tag>false</skip.docker.tag> + <skip.docker.push>false</skip.docker.push> + </properties> + </profile> + </profiles> </project> |