From 0badf73ec247bb7e0559e0f3f2fdbfac2f47102e Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Fri, 2 Feb 2024 17:00:40 +0100 Subject: [PATCH] fix: Use correct version for docker images --- project/DockerImagePlugin.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project/DockerImagePlugin.scala b/project/DockerImagePlugin.scala index 59cd9ec9..1a32cd7e 100644 --- a/project/DockerImagePlugin.scala +++ b/project/DockerImagePlugin.scala @@ -26,9 +26,9 @@ object DockerImagePlugin extends AutoPlugin { dockerUsername := Some("renku"), // temporarily use git hash as image tag - Docker / version := git.gitHeadCommit.value - .map(_.take(12)) - .getOrElse((Compile / version).value) + Docker / version := + imageTag(dynverGitDescribeOutput.value, git.gitHeadCommit.value) + .getOrElse((Compile / version).value) ) private def imageTag(out: Option[GitDescribeOutput], headCommit: Option[String]) =