Is there a way to access the current environment defined in the gitlab-ci.yml file?
For example:
test:
type: test
script:
[...]
staging:
type: deploy
before_script:
[...]
script:
[...]
only:
- master
environment: staging
production:
type: deploy
before_script:
[...]
script:
[...]
environment: production
staging or production in this case.