Skip to content

Commit

Permalink
build: don't push short tags for prereleases (#34403)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice authored Feb 23, 2025
1 parent 9b527ab commit dd09cfd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/utils/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit dd09cfd

Please sign in to comment.