Use CKI_DEPLOYMENT_ENVIRONMENT in the pipeline instead of retrigger: true
Currently, Python code uses IS_PRODUCTION
+ CKI_STAGING_TAG
to define deployment environments. In the pipeline, retrigger
is used to identify non-production pipelines.
When developing the DevOps presentation for DevConf, we found it far more logical to just have a CKI_DEPLOYMENT_ENVIRONMENT variable for this:
- CKI_DEPLOYMENT_ENVIRONMENT not defined -> environment=development, is_production=false
- CKI_DEPLOYMENT_ENVIRONMENT = "something" -> environment=something, is_production=false
- CKI_DEPLOYMENT_ENVIRONMENT = "production" -> environment=production, is_production=true
This should allow to use the same variable across pipeline and Python code.
AC:
- switch to use CKI_DEPLOYMENT_ENVIRONMENT everywhere
Edited by Michael Hofmann