Use Environment Variable to filter job filter

circle.yml
2.0

#1

I’ve searched the docs and the forums but haven’t come across a way to use environment variables as filters for jobs.

We have several repos where we want to standardize on a CircleCI config and turn on or off workflows based on the environment variables set for the project. For example, if we want to turn off the job to build a container image we can set something like BUILD_CONTAINER=""

This way we can reuse the same config over multiple repos.

Is there a better way to do this?


#2

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.