From 3d6fb8c4b1f54c76736c418f8dda4e1f9781a709 Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Fri, 25 Oct 2024 15:54:37 +0530 Subject: [PATCH] ci: push base and build images tags (#1499) --- docker-bake.hcl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-bake.hcl b/docker-bake.hcl index 6f10b150..9dc4c4c0 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -69,6 +69,8 @@ function "tag" { "${version}" == "develop" ? "${REGISTRY_USER}/${repo}:latest" : "${REGISTRY_USER}/${repo}:${version}", # Make short tag for major version if possible. For example, from v13.16.0 make v13. can(regex("(v[0-9]+)[.]", "${version}")) ? "${REGISTRY_USER}/${repo}:${regex("(v[0-9]+)[.]", "${version}")[0]}" : "", + # Make short tag for major version if possible. For example, from v13.16.0 make version-13. + can(regex("(v[0-9]+)[.]", "${version}")) ? "${REGISTRY_USER}/${repo}:version-${regex("([0-9]+)[.]", "${version}")[0]}" : "", ] }