From 3da4d60d835a4f4766a9747219dd359285d82191 Mon Sep 17 00:00:00 2001 From: Aleksei Novikov Date: Wed, 29 Sep 2021 11:30:31 +0300 Subject: [PATCH] Make latest only with release tags docker images --- build.gradle.kts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 5c2badb..8d0d6c1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -62,7 +62,6 @@ jib { image = "alekseinovikov/akaes" val tagNameEnv = System.getenv("TAG_NAME") - val releaseTag = if (tagNameEnv.isNullOrBlank()) "develop" else tagNameEnv - tags = setOf(releaseTag, "latest") + tags = if (tagNameEnv.isNullOrBlank()) setOf("develop") else setOf(tagNameEnv, "latest") } }