From dd09cfdbd2ec6ef63cc46e082102c780b15b8119 Mon Sep 17 00:00:00 2001 From: Michael Kriese <michael.kriese@visualon.de> Date: Sun, 23 Feb 2025 07:32:13 +0100 Subject: [PATCH] build: don't push short tags for prereleases (#34403) --- tools/utils/docker.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/utils/docker.ts b/tools/utils/docker.ts index 5386f0b922..913de44979 100644 --- a/tools/utils/docker.ts +++ b/tools/utils/docker.ts @@ -32,8 +32,10 @@ export async function bake( if (opts.version) { console.log(`Using version: ${opts.version.version}`); process.env.RENOVATE_VERSION = opts.version.version; - process.env.RENOVATE_MAJOR_VERSION = `${opts.version.major}`; - process.env.RENOVATE_MAJOR_MINOR_VERSION = `${opts.version.major}.${opts.version.minor}`; + if (!opts.version.prerelease) { + process.env.RENOVATE_MAJOR_VERSION = `${opts.version.major}`; + process.env.RENOVATE_MAJOR_MINOR_VERSION = `${opts.version.major}.${opts.version.minor}`; + } } const metadataFile = path.join(await tmp, 'metadata.json'); -- GitLab