Hi everyone, I have an issue with using environments. I created a very basic test setup but can't manage to make it work like I want to.
What I want to achive is creating a preview environment (manually) and when created it should show that in the environment in Gitlab. So I can see which environments are up at that moment and I can add the URL later and so on. But for now I want to run my test pipeline in the correct way first.
This is my gitlab-ci.yml. I think this should work but the UI is showing different. Please help me figure out what's the problem. I cannot believe I am the only one.
The problems: the environment looks started but is not yet when I push a new commit to the MR. Also the stop job is shown under the play button and the Stop in the right top corner is saying that there is no action: stop in the pipeline. I see this issue shown everywhere but still couldn't fine the solution.
- deploy # deployment
deploy_review:
stage: deploy
when: manual
script:
- echo "Deploy review app"
environment:
name: review/$CI_COMMIT_REF_SLUG
on_stop: stop_review
tags:
- default
stop_review:
stage: deploy
when: manual
script:
- echo "Remove review app 1"
environment:
name: review/$CI_COMMIT_REF_SLUG
action: stop
variables:
GIT_STRATEGY: none
tags:
- default
I run a self hosted environment v18.4.2-ee
Help will be really appreciated, it must be something small I guess..