Update Tag creation when pushing to docker hub

This commit is contained in:
Nicolas Héron 2020-10-28 15:38:41 +01:00
commit fd264ff7cc
6 changed files with 16 additions and 4 deletions

View file

@ -230,7 +230,10 @@
<assembly>
<descriptorRef>artifact</descriptorRef>
</assembly>
<tags>
<tag>${version.number}</tag>
<tag>latest</tag>
</tags>
</build>
<run>

View file

@ -371,7 +371,10 @@
<tags>
<tag>latest</tag>
</tags>
<tags>
<tag>${version.number}</tag>
<tag>latest</tag>
</tags>
</build>
<run>

View file

@ -386,7 +386,8 @@ public class KieServiceCommon {
for (ContainerRuntimePojoPersist element : containerRuntimePojoPersists) {
logger.debug("runtime {} has status {}", element.getContainerId(), element.getStatus());
ContainerPojoPersist containerPojoPersist = containerRepository.findByServerNameAndContainerId(serverName, element.getContainerId());
if (element.getStatus().equals(ContainerRuntimePojoPersist.STATUS.TODEPLOY.name())) {
if (containerPojoPersist!= null
&& element.getStatus().equals(ContainerRuntimePojoPersist.STATUS.TODEPLOY.name())) {
logger.info("start deploy new container");
this.disposeContainer(element.getContainerId());
KieContainerResource newContainer = new KieContainerResource();

View file

@ -262,6 +262,7 @@
<descriptorRef>artifact</descriptorRef>
</assembly>
<tags>
<tag>${version.number}</tag>
<tag>latest</tag>
</tags>