From 418891082ad6d60b1862ec90bff7f80a584e76f4 Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Mon, 19 Jun 2023 16:33:09 +0200 Subject: [PATCH] fix(kube): using current branch name in tags --- vars/kubecontainer.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vars/kubecontainer.groovy b/vars/kubecontainer.groovy index b33e52c..3277851 100644 --- a/vars/kubecontainer.groovy +++ b/vars/kubecontainer.groovy @@ -47,7 +47,7 @@ String buildAndPublishImage(Map options = [:]) { stage("Build image '${imageName}:${imageTag}'") { git.withHTTPCredentials(gitCredentialsId) { sh """ - make + CURRENT_BRANCH=${BRANCH_NAME} make """ } } @@ -62,7 +62,7 @@ String buildAndPublishImage(Map options = [:]) { utils.when(!dryRun) { retry(2) { sh """ - make release + CURRENT_BRANCH=${BRANCH_NAME} make release """ } }