summaryrefslogtreecommitdiffstats
path: root/javatoscachecker
diff options
context:
space:
mode:
Diffstat (limited to 'javatoscachecker')
-rw-r--r--javatoscachecker/pom.xml6
-rw-r--r--javatoscachecker/service/pom.xml21
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>