Skip to content

Commit

Permalink
Fix for: latest image was published for all builds. Not only released…
Browse files Browse the repository at this point in the history
… one
  • Loading branch information
arkadius committed Aug 12, 2021
1 parent c6254dc commit dc925cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ lazy val commonDockerSettings = {
val latestBranch = Some(currentBranch + "-latest")

List(dockerVersion, updateLatest, latestBranch, dockerTagName)
.map(tag => alias.withTag(tag.map(sanitize)))
.flatten
.map(tag => alias.withTag(Some(sanitize(tag))))
.distinct
}
)
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.1")

addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.2")

addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.5.2")
addSbtPlugin("com.github.sbt" % "sbt-native-packager" % "1.9.1")

addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.5.1")

Expand Down

0 comments on commit dc925cf

Please sign in to comment.