We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pure frontend strategy using env variables
Inside the Docker image:
RUN VERSION=$(grep version setup.py | sed 's/^.*version="//g' | sed 's/\",//g') &&\ npm run build --env.VERSION=$VERSION --env.COMMIT=$COMMIT
Inside the webpack:
module.exports = function (env){ if (env === undefined) { env = {} } if (!env.COMMIT) { env.COMMIT = 'x.x.x' } if (!env.VERSION) { env.VERSION = PACKAGE.version } ...
Then use the following to get version
const PRESENT_COMMIT = process.env.COMMIT; const PRESENT_VERSION = process.env.VERSION;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Pure frontend strategy using env variables
Inside the Docker image:
Inside the webpack:
Then use the following to get version
The text was updated successfully, but these errors were encountered: