Each step runs in its own shell, so if you have commands that depend on runtime definition of an environment variable, your only option is to combine those commands into a single step.
Note: BASH_ENV is purely bash-thing. So for example if you use alpine based docker image, which has dash by default, it will not work.
Written by -
Tags
Enjoyed the blog? If so, you'll appreciate collaborating with the minds behind it as well.