I have to workflows that look basically the same except that 1 does a full release (DB updates + app release) where the other only does a point release for the app.
The workflows are triggered using Trigger Pipeline and have a few parameters that need to be configured that are the exact same for both. env, release
Then I’m trying to use a new parameter point_release, if it’s true I want that workflow to execute, the default is false.
I’ve tried a few variations of conditionals and I can’t seem to even trigger the point release, I keep triggering the full one.
Any ideas?
deploy_to_stage_point_release:
when:
and:
- equal: [ stg01, << pipeline.parameters.env >> ]
- equal: [ true, << pipeline.parameters.point_release >>]
- or: [ << pipeline.parameters.release_version >> ]
deploy_to_stage:
when:
and:
- equal: [ stg01, << pipeline.parameters.env >> ]
- or: [ << pipeline.parameters.release_version >> ]