diff options
author | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2017-09-01 10:09:52 +0200 |
---|---|---|
committer | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2017-09-01 10:09:52 +0200 |
commit | deaff892acc545d80f41502033b4675409efe5b0 (patch) | |
tree | ef440071b4a1f2872b79ff4e8603391a3aaf110c /pom.xml | |
parent | e751aed27dbe17700e3ad17b9602964f9bfaf304 (diff) |
Add the missing tagging in Docker
Add the missing tagging for the remote repositories, the repository name
must be specified
Change-Id: I59877f7e1d2f3e3c040ff8707f5e76ecce3f3228
Issue-Id: CLAMP-43
Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 51 |
1 files changed, 49 insertions, 2 deletions
@@ -644,6 +644,53 @@ </buildArgs> </configuration> </execution> + + <execution> + <id>tag-image-latest-timestamp</id> + <phase>package</phase> + <goals> + <goal>tag</goal> + </goals> + <configuration> + <image>onap/clamp</image> + <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</newName> + <skipDockerTag>${skip.docker.push}</skipDockerTag> + </configuration> + </execution> + <execution> + <id>push-image-latest-timestamp</id> + <phase>deploy</phase> + <goals> + <goal>push</goal> + </goals> + <configuration> + <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttagtimestamp.version}</imageName> + <skipDockerPush>${skip.docker.push}</skipDockerPush> + </configuration> + </execution> + <execution> + <id>tag-image-latest</id> + <phase>package</phase> + <goals> + <goal>tag</goal> + </goals> + <configuration> + <image>onap/clamp</image> + <newName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</newName> + <skipDockerTag>${skip.docker.push}</skipDockerTag> + </configuration> + </execution> + <execution> + <id>push-image-latest</id> + <phase>deploy</phase> + <goals> + <goal>push</goal> + </goals> + <configuration> + <imageName>${docker.push.registry}/onap/clamp:${project.docker.latesttag.version}</imageName> + <skipDockerPush>${skip.docker.push}</skipDockerPush> + </configuration> + </execution> <execution> <id>tag-image</id> <phase>package</phase> @@ -652,7 +699,7 @@ </goals> <configuration> <image>onap/clamp</image> - <newName>${docker.push.registry}/onap/clamp</newName> + <newName>${docker.push.registry}/onap/clamp:latest</newName> <skipDockerTag>${skip.docker.push}</skipDockerTag> </configuration> </execution> @@ -663,7 +710,7 @@ <goal>push</goal> </goals> <configuration> - <imageName>${docker.push.registry}/onap/clamp</imageName> + <imageName>${docker.push.registry}/onap/clamp:latest</imageName> <skipDockerPush>${skip.docker.push}</skipDockerPush> </configuration> </execution> |