Hello,
In the task , I am trying to dynamically set the env variable like this:
if domain is ‘development’, then env=‘dev’
if domain is ‘stage’, then env=‘stage’
if domain is ‘production’, then env=‘prod’
The question is how to determine the domain in code?
I tried flytekit.current_context() with no avail.
Could someone shed some light?
Thanks
l
limited-dog-47035
12/05/2022, 11:26 PM
We set environment variables in our CI/CD process using the same parameter that sets the target domain to deploy workflows to (which is tied to our branch name). Would be interested in following this thread in case there's a better way to do it