Hey all, I'm trying out Review Apps and I'm having a problem. I'm trying to spin up a new Heroku app for each Review App, but the problem is that my branch name in $CI_BUILD_REF_NAME contains characters that Heroku doesn't support.
I can create the Heroku app just fine by running the name through a regex and stripping out the invalid characters. But I can't seem to figure out how to create the environment URL properly. Is there a way to create dynamic variables in the YAML file, so I can create a variable, say "APP_NAME", and set it to a dynamic value, possibly piping stuff through shell commands? I can do something like this: environment: url: https://$CI_BUILD_REF_NAME.herokuapp.com But I need something more like this: environment: url: https://$(echo $CI_BUILD_REF_NAME | sed 's/_/-').herokuapp.com But that ^ doesn't seem to work... Thanks Alex -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/3c3a9caf-6040-453b-9d01-e64179567dc0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.