I’m trying to convert some existing variables to use a env_var_name
parameter. The problem I’m running into is I can’t figure out how to run a local build and get the env_var_name parameter to have a “real” value (other than that define by the “default” field) during the local build.
For example, given an Orb that defines a parameter like this:
parameters:
myEnvVar:
type: env_var_name
default: MY_ENV_VAR
My workflow (for better of worse) is:
-
Process my inline Orb into a “local” compatible config. Like:
circleci config process .circleci/config.yml > .circleci/local-config.yml
-
Run the
local-config
via a shell script that provide values for the command line via the-e
parameter. Like this:circleci local execute -c .circleci/local-config.yml --job 'build' -e MY_ENV_VAR=someRealValue
When the local build executes, the value found in the parameter myEnvVar (via: << parameters. myEnvVar >> ) is always just the “default” variable name (MY_ENV_VAR). My goal is to make the local build see the value “someRealValue”. Is this possible? Thanks!