Environment created by job that wont be run
Summary
Job .gitlab-ci.yml
, that has only: branches
and environment.name: review/$CI_COMMIT_REF_SLUG
But in the list of environments in GitLab it has created environments for tags.
Steps to reproduce
Example .gitlab-ci.yml
deploy_review:
stage: deploy
environment:
name: review/$CI_COMMIT_REF_SLUG
on_stop: stop_review
only:
- branches
script:
- do_stuff
Push a tag.
What is the current bug behavior?
You will environment created 'review/tag-name'
What is the expected correct behavior?
Only see environments for branches because of only
Results of GitLab environment info
GitLab 10.4.2
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)