I would like to deploy to different environments in our Bitbucket pipeline. Our environments are limited to three, and I'd like to limit the options available when starting the pipeline.
A pipeline right now looks like this:
custom:
deploy-cosmos-to-env:
- variables:
- name: ENVIRONMENT
- step: *plan-cosmos
- step: *apply-cosmos
I would like to limit the possible variables:
variables:
- name: ENVIRONMENT
enum: [dev, staging, prod]
Is this possible?
PS. How do you copy paste into this editor? It decimates new lines, even in code blocks.