Skip to content

Commit

Permalink
chore(9630): update env var VERSION to use the branch name value (#9674)
Browse files Browse the repository at this point in the history
  • Loading branch information
tatilepizs authored Nov 28, 2024
1 parent 44c9583 commit 01d06ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build/versions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const packageJson = require('../../package.json');
const buildTime = new Date().getTime();
const { execSync } = require('child_process');

const {
ECR_REPO,
Expand Down Expand Up @@ -46,7 +46,7 @@ const getVersion = (release) => {
return process.env.VERSION;
}

return `${packageJson.version}-dev.${buildTime}`;
return execSync('git branch --show-current', { encoding: 'utf-8' }).trim();
};

const getImageTag = (service, release = false) => {
Expand Down

0 comments on commit 01d06ec

Please sign in to comment.