Use Variables to display build information in Webapp

You should be using double quotes. In bash, single quotes don’t evaluate any variables.

So this should work:

sed -i "s/ref/$CI_BUILD_REF_NAME $CI_BUILD_REF/g" src/app/authentication/login.component.html

And if you’re using Webpack or Browserify, you can already use environment variables directly via process.env.CI_BUILD_REF_NAME