Skip to content

Commit

Permalink
fix: Use correct version for docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
eikek committed Feb 2, 2024
1 parent 1e8e875 commit 0badf73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions project/DockerImagePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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]) =
Expand Down

0 comments on commit 0badf73

Please sign in to comment.