From 80d74d469b509d6b89fbd8f7f2d84c179b72eb05 Mon Sep 17 00:00:00 2001 From: Aleksei Novikov Date: Wed, 29 Sep 2021 11:26:11 +0300 Subject: [PATCH] Fix empty image tag for jib --- build.gradle.kts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index 1f5cac2..5c2badb 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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") } }