GitLab CI ignores the value of `deployment_tier`
I've spent the last hours trying to understand why a job that was working fine last week now is misbehaving.
I'm afraid this is one of these scenarios where the issue is obviously in front of me: I just can't see it.
Here's is an excerpt of the YAML file:
before_script:
- |
# Environment variables
echo "===================================================================================================="
echo " "
echo ":: CI"
echo " "
echo "(some more stuff)"
echo " "
echo "===================================================================================================="
Build Dev:
image: some-custom-image
stage: development
retry: 1
allow_failure: true # To not block the pipeline?
environment:
name: $CI_COMMIT_REF_SLUG
url: https://$CI_COMMIT_REF_SLUG-$CI_PROJECT_NAME.domain.tld
deployment_tier: development
auto_stop_in: 1 day
on_stop: Stop Dev
resource_group: development
script:
- # Do something
rules:
- if: '$CI_COMMIT_REF_PROTECTED != "true"'
when: manual
When running this job, the value of CI_ENVIRONMENT_TIER
is other
instead of development
.
Here's the output to the before_script
:
====================================================================================================
:: CI
CI_ENVIRONMENT_TIER other
(some more stuff)
====================================================================================================