Skip to content

Commit

Permalink
Fix empty image tag for jib
Browse files Browse the repository at this point in the history
  • Loading branch information
alekseinovikov committed Sep 29, 2021
1 parent c6c151c commit 80d74d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ jib {
password = System.getenv("DOCKER_HUB_PASSWORD")
}
image = "alekseinovikov/akaes"
tags = setOf(System.getenv("TAG_NAME")?: "develop", "latest")

val tagNameEnv = System.getenv("TAG_NAME")
val releaseTag = if (tagNameEnv.isNullOrBlank()) "develop" else tagNameEnv
tags = setOf(releaseTag, "latest")
}
}

0 comments on commit 80d74d4

Please sign in to comment.