diff options
author | Xiaohua Zhang <xiaohua.zhang@windriver.com> | 2019-07-15 09:40:50 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-07-15 09:40:50 +0000 |
commit | 848132168436d54862ebc9ee008cc1a034e6a11d (patch) | |
tree | 30fdb2efd3c844f8ac62486ff2d00d04cd3f0142 /multivimbroker | |
parent | c5bacb8c02da8ef280359b0c492468403f89fda3 (diff) | |
parent | 64457526dc2685a588d6b8560c9a76d01a795a4a (diff) |
Merge "Migrate docker job for multivimbroker"
Diffstat (limited to 'multivimbroker')
-rw-r--r-- | multivimbroker/pom.xml | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/multivimbroker/pom.xml b/multivimbroker/pom.xml index dea669e..fd7de1c 100644 --- a/multivimbroker/pom.xml +++ b/multivimbroker/pom.xml @@ -113,4 +113,76 @@ </plugin> </plugins> </build> + <profiles> + <profile> + <id>docker</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-resources-plugin</artifactId> + <version>3.1.0</version> + <executions> + <execution> + <id>copy-resources</id> + <phase>validate</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory>${project.basedir}/docker_target</outputDirectory> + <resources> + <resource> + <directory>${project.basedir}/docker</directory> + <filtering>true</filtering> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.6</version> + <executions> + <execution> + <phase>install</phase> + <inherited>false</inherited> + <configuration> + <target> + <exec executable="docker"> + <arg value="build"/> + <arg value="-t"/> + <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/framework:${project.version}"/> + <arg value="docker_target"/> + </exec> + <exec executable="docker"> + <arg value="tag"/> + <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/framework:${project.version}"/> + <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/framework:latest"/> + </exec> + <exec executable="docker"> + <arg value="push"/> + <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/framework:${project.version}"/> + </exec> + <exec executable="docker"> + <arg value="push"/> + <arg value="${CONTAINER_PUSH_REGISTRY}/onap/multicloud/framework:latest"/> + </exec> + </target> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + <activation> + <activeByDefault>false</activeByDefault> + </activation> + </profile> + </profiles> </project> |